revise rejection log messages
This commit is contained in:
parent
2ae79a2cc1
commit
4059b207a1
|
@ -206,7 +206,6 @@ func iszonked(userid int64, xid string) bool {
|
||||||
|
|
||||||
func needxonk(user *WhatAbout, x *Honk) bool {
|
func needxonk(user *WhatAbout, x *Honk) bool {
|
||||||
if rejectxonk(x) {
|
if rejectxonk(x) {
|
||||||
log.Printf("not saving thumb biter? %s via %s", x.XID, x.Honker)
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return needxonkid(user, x.XID)
|
return needxonkid(user, x.XID)
|
||||||
|
@ -216,7 +215,6 @@ func needxonkid(user *WhatAbout, xid string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if rejectorigin(user.ID, xid) {
|
if rejectorigin(user.ID, xid) {
|
||||||
log.Printf("don't need thumb biter? %s", xid)
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if iszonked(user.ID, xid) {
|
if iszonked(user.ID, xid) {
|
||||||
|
|
1
hfcs.go
1
hfcs.go
|
@ -225,6 +225,7 @@ func rejectxonk(xonk *Honk) bool {
|
||||||
filts := getfilters(xonk.UserID, filtReject)
|
filts := getfilters(xonk.UserID, filtReject)
|
||||||
for _, f := range filts {
|
for _, f := range filts {
|
||||||
if matchfilter(xonk, f) {
|
if matchfilter(xonk, f) {
|
||||||
|
log.Printf("rejecting %s because %s", xonk.XID, f.Actor)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue