revise rejection log messages

master
Ted Unangst 5 years ago
parent 2ae79a2cc1
commit 4059b207a1

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

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

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

Loading…
Cancel
Save