exlude self from reply mentions
This commit is contained in:
parent
aea6401d75
commit
b9bb752d7c
4
fun.go
4
fun.go
|
@ -86,7 +86,7 @@ func reverbolate(userid int64, honks []*Honk) {
|
||||||
if user.Options.MentionAll {
|
if user.Options.MentionAll {
|
||||||
hset := []string{"@" + h.Handle}
|
hset := []string{"@" + h.Handle}
|
||||||
for _, a := range h.Audience {
|
for _, a := range h.Audience {
|
||||||
if a == h.Honker {
|
if a == h.Honker || a == user.URL {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
_, hand := handles(a)
|
_, hand := handles(a)
|
||||||
|
@ -96,7 +96,7 @@ func reverbolate(userid int64, honks []*Honk) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
h.Handles = strings.Join(hset, " ")
|
h.Handles = strings.Join(hset, " ")
|
||||||
} else {
|
} else if h.Honker != user.URL {
|
||||||
h.Handles = "@" + h.Handle
|
h.Handles = "@" + h.Handle
|
||||||
}
|
}
|
||||||
if h.URL == "" {
|
if h.URL == "" {
|
||||||
|
|
Loading…
Reference in New Issue