exlude self from reply mentions
Ted Unangst tedu@tedunangst.com
Wed, 05 Aug 2020 15:42:59 -0400
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
fun.go
→
fun.go
@@ -86,7 +86,7 @@ }
if user.Options.MentionAll { hset := []string{"@" + h.Handle} for _, a := range h.Audience { - if a == h.Honker { + if a == h.Honker || a == user.URL { continue } _, hand := handles(a)@@ -96,7 +96,7 @@ hset = append(hset, hand)
} } h.Handles = strings.Join(hset, " ") - } else { + } else if h.Honker != user.URL { h.Handles = "@" + h.Handle } if h.URL == "" {