users: refactor limit methods.

* Refactor various user limit methods to class methods from instance
  methods so they can be used outside the context of a single user.

* Remove the Danbooru.config.base_tag_query_limit option.
This commit is contained in:
evazion
2021-01-01 18:50:03 -06:00
parent ecd29c1a66
commit 0b2f9fafa8
3 changed files with 85 additions and 63 deletions

View File

@@ -107,11 +107,6 @@ module Danbooru
2
end
# Users cannot search for more than X regular tags at a time.
def base_tag_query_limit
6
end
# After this many pages, the paginator will switch to sequential mode.
def max_numbered_pages
1_000