exlude self from reply mentions

This commit is contained in:
Ted Unangst 2020-08-05 15:42:59 -04:00
parent aea6401d75
commit b9bb752d7c
1 changed files with 2 additions and 2 deletions

4
fun.go
View File

@ -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 == "" {