fast track blocks by objid
This commit is contained in:
parent
fd5d297188
commit
29334c3116
1 changed files with 4 additions and 0 deletions
4
fun.go
4
fun.go
|
|
@ -571,6 +571,10 @@ func thoudostbitethythumb(userid int64, who []string, objid string) bool {
|
||||||
thumblock.Lock()
|
thumblock.Lock()
|
||||||
biters := thumbbiters[userid]
|
biters := thumbbiters[userid]
|
||||||
thumblock.Unlock()
|
thumblock.Unlock()
|
||||||
|
objwhere := originate(objid)
|
||||||
|
if objwhere != "" && biters[objwhere] {
|
||||||
|
return true
|
||||||
|
}
|
||||||
for _, w := range who {
|
for _, w := range who {
|
||||||
if biters[w] {
|
if biters[w] {
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue