all repos — honk @ a1a0214ba223c2633d397a6493252f32d8494cc8

my fork of honk

revise rejection log messages
Ted Unangst tedu@tedunangst.com
Sun, 06 Oct 2019 22:48:23 -0400
commit

a1a0214ba223c2633d397a6493252f32d8494cc8

parent

47bceb94c022d8f6e8abd7123a6e3096a21b1524

3 files changed, 1 insertions(+), 3 deletions(-)

jump to
M activity.goactivity.go

@@ -206,7 +206,6 @@ }

func needxonk(user *WhatAbout, x *Honk) bool { if rejectxonk(x) { - log.Printf("not saving thumb biter? %s via %s", x.XID, x.Honker) return false } return needxonkid(user, x.XID)

@@ -216,7 +215,6 @@ if strings.HasPrefix(xid, user.URL+"/") {

return false } if rejectorigin(user.ID, xid) { - log.Printf("don't need thumb biter? %s", xid) return false } if iszonked(user.ID, xid) {
M hfcs.gohfcs.go

@@ -225,6 +225,7 @@ func rejectxonk(xonk *Honk) bool {

filts := getfilters(xonk.UserID, filtReject) for _, f := range filts { if matchfilter(xonk, f) { + log.Printf("rejecting %s because %s", xonk.XID, f.Actor) return true } }
M web.goweb.go

@@ -309,7 +309,6 @@ log.Printf("keyname actor mismatch: %s <> %s", keyname, who)

return } if rejectactor(user.ID, who) { - log.Printf("ignoring thumb sucker %s", who) return } switch what {