reduce duplicate log messages
Ted Unangst tedu@tedunangst.com
Fri, 24 Jan 2020 20:12:58 -0500
2 files changed,
1 insertions(+),
2 deletions(-)
M
activity.go
→
activity.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.go
→
hfcs.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 } }