can use function here

This commit is contained in:
Ted Unangst 2019-05-21 13:57:45 -04:00
parent d4d2483ee0
commit a919fed6f9
1 changed files with 2 additions and 3 deletions

5
fun.go
View File

@ -424,9 +424,8 @@ func thoudostbitethythumb(userid int64, who []string, objid string) bool {
if biters[w] { if biters[w] {
return true return true
} }
m := re_unurl.FindStringSubmatch(w) where := originate(w)
if len(m) > 2 { if where != "" {
where := m[1]
if biters[where] { if biters[where] {
return true return true
} }