reduce duplicate log messages
This commit is contained in:
parent
6235bab4a0
commit
eb34f8f555
|
@ -255,6 +255,7 @@ func needxonkidX(user *WhatAbout, xid string, isannounce bool) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if rejectorigin(user.ID, xid, isannounce) {
|
if rejectorigin(user.ID, xid, isannounce) {
|
||||||
|
log.Printf("rejecting origin: %s", xid)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if iszonked(user.ID, xid) {
|
if iszonked(user.ID, xid) {
|
||||||
|
|
2
hfcs.go
2
hfcs.go
|
@ -209,12 +209,10 @@ func rejectorigin(userid int64, origin string, isannounce bool) bool {
|
||||||
for _, f := range filts {
|
for _, f := range filts {
|
||||||
if isannounce && f.IsAnnounce {
|
if isannounce && f.IsAnnounce {
|
||||||
if f.AnnounceOf == origin {
|
if f.AnnounceOf == origin {
|
||||||
log.Printf("rejecting announce: %s", origin)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if f.Actor == origin {
|
if f.Actor == origin {
|
||||||
log.Printf("rejecting origin: %s", origin)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue