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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user