should solve all residual tag_query_limit bugs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user