From a919fed6f97a61bb567f0aed4649da937d9075c8 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 21 May 2019 13:57:45 -0400 Subject: [PATCH] can use function here --- fun.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fun.go b/fun.go index 9d1674d..e7ef200 100644 --- a/fun.go +++ b/fun.go @@ -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 }