Add Danbooru Winter Sale.

This commit is contained in:
evazion
2021-12-28 14:41:37 -06:00
parent 572b1b74f7
commit b8356c97c1
11 changed files with 76 additions and 8 deletions

View File

@@ -437,7 +437,9 @@ class User < ApplicationRecord
end
def tag_query_limit(level)
if level >= User::Levels::BUILDER
if level >= User::Levels::MEMBER && Danbooru.config.is_promotion?
Float::INFINITY
elsif level >= User::Levels::BUILDER
Float::INFINITY
elsif level == User::Levels::PLATINUM
12