need to check a few more keys for all the filters

This commit is contained in:
Ted Unangst 2020-01-01 22:33:04 -05:00
parent 676d34ecd9
commit 169c7875a8
1 changed files with 3 additions and 0 deletions

View File

@ -330,9 +330,12 @@ func rejectxonk(xonk *Honk) bool {
rejectcache.Get(xonk.UserID, &m) rejectcache.Get(xonk.UserID, &m)
filts := m[rejectAnyKey] filts := m[rejectAnyKey]
filts = append(filts, m[xonk.Honker]...) filts = append(filts, m[xonk.Honker]...)
filts = append(filts, m[originate(xonk.Honker)]...)
filts = append(filts, m[xonk.Oonker]...) filts = append(filts, m[xonk.Oonker]...)
filts = append(filts, m[originate(xonk.Oonker)]...)
for _, a := range xonk.Audience { for _, a := range xonk.Audience {
filts = append(filts, m[a]...) filts = append(filts, m[a]...)
filts = append(filts, m[originate(a)]...)
} }
for _, f := range filts { for _, f := range filts {
if cause := matchfilterX(xonk, f); cause != "" { if cause := matchfilterX(xonk, f); cause != "" {