search: don't error out on source:*pixiv* searches.

This commit is contained in:
evazion
2019-08-21 23:33:49 -05:00
parent d75d2266c9
commit ac259859f9

View File

@@ -121,10 +121,6 @@ module PostSets
end
def posts
if tag_array.any? {|x| x =~ /^-?source:.*\*.*pixiv/} && !CurrentUser.user.is_builder?
raise SearchError.new("Your search took too long to execute and was canceled")
end
@posts ||= begin
@post_count = get_post_count()