all repos — honk @ a38187ac40a3c8a2bd0855f0ea1dcbb7d2606002

my fork of honk

don't reject partial matches
Ted Unangst tedu@tedunangst.com
Tue, 08 Oct 2019 15:00:15 -0400
commit

a38187ac40a3c8a2bd0855f0ea1dcbb7d2606002

parent

d0f8ccf3ab4a2d4dbb308b5a97cb4613f01c4696

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M hfcs.gohfcs.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