don't reject partial matches
Ted Unangst tedu@tedunangst.com
Tue, 08 Oct 2019 15:00:15 -0400
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
hfcs.go
→
hfcs.go
@@ -143,6 +143,9 @@ origin = o
} 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