all repos — honk @ d3c5772947da3902be9a871eeb860f209734b47d

my fork of honk

reduce duplicate log messages
Ted Unangst tedu@tedunangst.com
Fri, 24 Jan 2020 20:12:58 -0500
commit

d3c5772947da3902be9a871eeb860f209734b47d

parent

81ba3920651b03a714619569b8f9c8d7ef0e2cff

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

jump to
M activity.goactivity.go

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

return false } if rejectorigin(user.ID, xid, isannounce) { + log.Printf("rejecting origin: %s", xid) return false } if iszonked(user.ID, xid) {
M hfcs.gohfcs.go

@@ -209,12 +209,10 @@ filts := rejectfilters(userid, origin)

for _, f := range filts { if isannounce && f.IsAnnounce { if f.AnnounceOf == origin { - log.Printf("rejecting announce: %s", origin) return true } } if f.Actor == origin { - log.Printf("rejecting origin: %s", origin) return true } }