From 19feb050e9cd05b6dfbd4b07a642648faa1855ae Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 8 Oct 2019 15:00:15 -0400 Subject: [PATCH] don't reject partial matches --- hfcs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hfcs.go b/hfcs.go index 40bd30e..06f831e 100644 --- a/hfcs.go +++ b/hfcs.go @@ -143,6 +143,9 @@ func rejectorigin(userid int64, origin string) bool { } filts := getfilters(userid, filtReject) for _, f := range filts { + if f.IsAnnounce || f.Text != "" { + continue + } if f.Actor == origin { log.Printf("rejecting origin: %s", origin) return true @@ -155,6 +158,9 @@ func rejectactor(userid int64, actor string) bool { origin := originate(actor) filts := getfilters(userid, filtReject) for _, f := range filts { + if f.IsAnnounce || f.Text != "" { + continue + } if f.Actor == actor || (origin != "" && f.Actor == origin) { log.Printf("rejecting actor: %s", actor) return true