should solve all residual tag_query_limit bugs

This commit is contained in:
albert
2013-02-20 21:56:09 -05:00
parent 2f180036e2
commit e51631fbfa
8 changed files with 45 additions and 10 deletions

View File

@@ -118,10 +118,18 @@ module Danbooru
end
# Users cannot search for more than X regular tags at a time.
def tag_query_limit
def base_tag_query_limit
6
end
def tag_query_limit
if CurrentUser.user.present?
CurrentUser.user.tag_query_limit
else
base_tag_query_limit * 2
end
end
# Max number of posts to cache
def tag_subscription_post_limit
200