another faster check for blocked stuff

This commit is contained in:
Ted Unangst 2019-09-06 14:44:29 -04:00
parent 2cb07e026a
commit 6eb416eea3
1 changed files with 4 additions and 0 deletions

View File

@ -209,6 +209,10 @@ func needxonkid(user *WhatAbout, xid string) bool {
if strings.HasPrefix(xid, user.URL+"/") { if strings.HasPrefix(xid, user.URL+"/") {
return false return false
} }
if thoudostbitethythumb(user.ID, nil, xid) {
log.Printf("don't need thumb biter? %s", xid)
return false
}
if iszonked(user.ID, xid) { if iszonked(user.ID, xid) {
log.Printf("already zonked: %s", xid) log.Printf("already zonked: %s", xid)
return false return false