fast track blocks by objid

This commit is contained in:
Ted Unangst 2019-08-06 16:31:54 -04:00
parent fd5d297188
commit 29334c3116
1 changed files with 4 additions and 0 deletions

4
fun.go
View File

@ -571,6 +571,10 @@ func thoudostbitethythumb(userid int64, who []string, objid string) bool {
thumblock.Lock()
biters := thumbbiters[userid]
thumblock.Unlock()
objwhere := originate(objid)
if objwhere != "" && biters[objwhere] {
return true
}
for _, w := range who {
if biters[w] {
return true