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] {
return true
}
m := re_unurl.FindStringSubmatch(w)
if len(m) > 2 {
where := m[1]
where := originate(w)
if where != "" {
if biters[where] {
return true
}