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()
objwhere := originate(objid)
if objwhere != "" && biters[objwhere] {
log.Printf("thumbbiter: %s", objid)
return true
}
for _, w := range who {
if biters[w] {
log.Printf("thumbbiter: %s", w)
return true
}
where := originate(w)
if where != "" {
if biters[where] {
log.Printf("thumbbiter: %s", w)
return true
}
}