Fix #5168: Disable rate limits on testbooru/non-prod environments.
Add a `rate_limits_enabled?` config option for disabling rate limits.
This commit is contained in:
@@ -372,6 +372,11 @@ module Danbooru
|
||||
true
|
||||
end
|
||||
|
||||
# Whether to enable API rate limits.
|
||||
def rate_limits_enabled?
|
||||
true
|
||||
end
|
||||
|
||||
def stripe_secret_key
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user