all repos — honk @ 91ef4b9fcc0346680d8114660b150382044a13a4

my fork of honk

reject actor filter is too aggro
Ted Unangst tedu@tedunangst.com
Sat, 02 Mar 2024 16:02:33 -0500
commit

91ef4b9fcc0346680d8114660b150382044a13a4

parent

7a861c7dfa1d5f248a663564d56c77b9f069fefd

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M hfcs.gohfcs.go

@@ -250,13 +250,14 @@

func rejectactor(userid UserID, actor string) bool { filts := rejectfilters(userid, actor) for _, f := range filts { - if f.IsAnnounce { + if f.IsAnnounce || f.IsReply { continue } - if f.Actor == actor { - ilog.Printf("rejecting actor: %s", actor) - return true + if f.Text != "" { + continue } + ilog.Printf("rejecting actor: %s", actor) + return true } origin := originate(actor) if origin == "" {