fix fast_count

This commit is contained in:
albert
2013-02-24 00:04:03 -05:00
parent d41a4a4935
commit dcdb550cf1

View File

@@ -605,7 +605,7 @@ class Post < ActiveRecord::Base
if tags.blank? && Danbooru.config.blank_tag_search_fast_count
count = Danbooru.config.blank_tag_search_fast_count
elsif tags =~ /(?:#{Tag::METATAGS}):/
fast_count_search(tags)
count = fast_count_search(tags)
else
count = get_count_from_cache(tags)