all repos — honk @ 0d62de1e2e3f0eab06a250fef80b626d7dc5018e

my fork of honk

compile, then ship
Ted Unangst tedu@tedunangst.com
Fri, 04 Oct 2019 21:49:49 -0400
commit

0d62de1e2e3f0eab06a250fef80b626d7dc5018e

parent

a4f701b48ee51be69f5feba0cb90e4f74328f010

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

jump to
M hfcs.gohfcs.go

@@ -184,7 +184,7 @@

func rejectxonk(xonk *Honk) bool { filts := getfilters(xonk.UserID, filtReject) for _, f := range filts { - if matchfilter(xonk, filts) { + if matchfilter(xonk, f) { return true } }

@@ -194,7 +194,7 @@

func skipMedia(xonk *Honk) bool { filts := getfilters(xonk.UserID, filtSkipMedia) for _, f := range filts { - if matchfilter(xonk, filts) { + if matchfilter(xonk, f) { return true } }

@@ -211,8 +211,10 @@ filts := getfilters(userid, filtHide)

j := 0 outer: for _, h := range honks { - if matchfilter(h, filts) { - continue outer + for _, f := range filts { + if matchfilter(h, f) { + continue outer + } } honks[j] = h j++