log what we don't like

This commit is contained in:
Ted Unangst 2019-09-04 13:59:27 -04:00
parent 78cab35653
commit 688d6be957
1 changed files with 3 additions and 0 deletions

3
fun.go
View File

@ -645,15 +645,18 @@ func thoudostbitethythumb(userid int64, who []string, objid string) bool {
thumblock.Unlock() thumblock.Unlock()
objwhere := originate(objid) objwhere := originate(objid)
if objwhere != "" && biters[objwhere] { if objwhere != "" && biters[objwhere] {
log.Printf("thumbbiter: %s", objid)
return true return true
} }
for _, w := range who { for _, w := range who {
if biters[w] { if biters[w] {
log.Printf("thumbbiter: %s", w)
return true return true
} }
where := originate(w) where := originate(w)
if where != "" { if where != "" {
if biters[where] { if biters[where] {
log.Printf("thumbbiter: %s", w)
return true return true
} }
} }