bug fix
This commit is contained in:
@@ -48,10 +48,14 @@ module PostSets
|
|||||||
timeout = 300
|
timeout = 300
|
||||||
end
|
end
|
||||||
|
|
||||||
temp = ::Post.with_timeout(timeout, Danbooru.config.blank_tag_search_fast_count || 1_000_000) do
|
temp = ::Post.with_timeout(timeout, nil) do
|
||||||
::Post.tag_match(tag_string).paginate(page, :count => ::Post.fast_count(tag_string), :limit => per_page)
|
::Post.tag_match(tag_string).paginate(page, :count => ::Post.fast_count(tag_string), :limit => per_page)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if temp.nil?
|
||||||
|
temp = ::Post.where("FALSE").paginate(page)
|
||||||
|
end
|
||||||
|
|
||||||
temp.all
|
temp.all
|
||||||
temp
|
temp
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user