fix for tag blacklists, typo fixes
This commit is contained in:
@@ -595,6 +595,11 @@ class Post < ActiveRecord::Base
|
||||
|
||||
def fast_count(tags = "")
|
||||
tags = tags.to_s.strip
|
||||
|
||||
if tags.blank?
|
||||
return Danbooru.config.blank_tag_search_fast_count || 1_000_000
|
||||
end
|
||||
|
||||
count = get_count_from_cache(tags)
|
||||
if count.nil?
|
||||
if tags.blank? && Danbooru.config.blank_tag_search_fast_count
|
||||
|
||||
Reference in New Issue
Block a user