fix for tag blacklists, typo fixes

This commit is contained in:
albert
2013-02-17 02:19:33 -05:00
parent 5ac578adf3
commit 2b0857a3cd
7 changed files with 16 additions and 10 deletions

View File

@@ -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

View File

@@ -219,7 +219,7 @@ class User < ActiveRecord::Base
return {
"Member" => Levels::MEMBER,
"Privileged" => Levels::PRIVILEGED,
"Builder" => Levels::BUIDLER,
"Builder" => Levels::BUILDER,
"Contributor" => Levels::CONTRIBUTOR,
"Janitor" => Levels::JANITOR,
"Moderator" => Levels::MODERATOR,