reduce duplicate log messages

This commit is contained in:
Ted Unangst 2020-01-24 20:12:58 -05:00
parent 6235bab4a0
commit eb34f8f555
2 changed files with 1 additions and 2 deletions

View File

@ -255,6 +255,7 @@ func needxonkidX(user *WhatAbout, xid string, isannounce bool) bool {
return false
}
if rejectorigin(user.ID, xid, isannounce) {
log.Printf("rejecting origin: %s", xid)
return false
}
if iszonked(user.ID, xid) {

View File

@ -209,12 +209,10 @@ func rejectorigin(userid int64, origin string, isannounce bool) bool {
for _, f := range filts {
if isannounce && f.IsAnnounce {
if f.AnnounceOf == origin {
log.Printf("rejecting announce: %s", origin)
return true
}
}
if f.Actor == origin {
log.Printf("rejecting origin: %s", origin)
return true
}
}