From b9bb752d7c75714ff414f06abbbecb99c3c9697f Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 5 Aug 2020 15:42:59 -0400 Subject: [PATCH] exlude self from reply mentions --- fun.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fun.go b/fun.go index b81f427..670ff63 100644 --- a/fun.go +++ b/fun.go @@ -86,7 +86,7 @@ func reverbolate(userid int64, honks []*Honk) { 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 @@ func reverbolate(userid int64, honks []*Honk) { } } h.Handles = strings.Join(hset, " ") - } else { + } else if h.Honker != user.URL { h.Handles = "@" + h.Handle } if h.URL == "" {