From 4059b207a12d354ba8b15df62502a0af87a3bb5e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 6 Oct 2019 22:48:23 -0400 Subject: [PATCH] revise rejection log messages --- activity.go | 2 -- hfcs.go | 1 + web.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/activity.go b/activity.go index 99dce52..1b24919 100644 --- a/activity.go +++ b/activity.go @@ -206,7 +206,6 @@ func iszonked(userid int64, xid string) bool { 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 @@ func needxonkid(user *WhatAbout, xid string) bool { return false } if rejectorigin(user.ID, xid) { - log.Printf("don't need thumb biter? %s", xid) return false } if iszonked(user.ID, xid) { diff --git a/hfcs.go b/hfcs.go index a19f854..5f05695 100644 --- a/hfcs.go +++ b/hfcs.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 } } diff --git a/web.go b/web.go index 125a7d6..5e9b1b3 100644 --- a/web.go +++ b/web.go @@ -309,7 +309,6 @@ func inbox(w http.ResponseWriter, r *http.Request) { return } if rejectactor(user.ID, who) { - log.Printf("ignoring thumb sucker %s", who) return } switch what {