revise rejection log messages

This commit is contained in:
Ted Unangst 2019-10-06 22:48:23 -04:00
parent 2ae79a2cc1
commit 4059b207a1
3 changed files with 1 additions and 3 deletions

View File

@ -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) {

View File

@ -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
}
}

1
web.go
View File

@ -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 {