reject actor filter is too aggro
Ted Unangst tedu@tedunangst.com
Sat, 02 Mar 2024 16:02:33 -0500
1 files changed,
5 insertions(+),
4 deletions(-)
jump to
M
hfcs.go
→
hfcs.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 == "" {