revise rejection log messages
This commit is contained in:
parent
2ae79a2cc1
commit
4059b207a1
3 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
web.go
1
web.go
|
|
@ -309,7 +309,6 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if rejectactor(user.ID, who) {
|
if rejectactor(user.ID, who) {
|
||||||
log.Printf("ignoring thumb sucker %s", who)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch what {
|
switch what {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue