nijie: don't return bogus artists when artist finder finds no match.

This commit is contained in:
evazion
2017-06-20 17:09:57 -05:00
parent 294358b4a6
commit dc36476d50
2 changed files with 17 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ class Artist < ApplicationRecord
break if url =~ /deviantart\.net\//i
break if url =~ %r!\Ahttps?://(?:mobile\.)?twitter\.com/\Z!i
break if url =~ %r!pawoo\.net/(?:web/)?$!i
break if url =~ %r!\Ahttps?://(pic\d+\.)?nijie\.info/!i
end
artists.inject({}) {|h, x| h[x.name] = x; h}.values.slice(0, 20)