Fix wrong SiteConfig mentions (#13739)

This commit is contained in:
Michael Kohl 2021-05-13 16:36:36 +07:00 committed by GitHub
parent 3c92419311
commit f7293c3544
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ module RateLimitCheckerHelper
"create within any 5 minute period?".freeze
def self.new_user_message(thing)
timeframe = "day".pluralize(SiteConfig.user_considered_new_days)
timeframe = "day".pluralize(Settings::RateLimit.user_considered_new_days)
format(NEW_USER_MESSAGE, thing: thing, timeframe: timeframe)
end

View file

@ -9,7 +9,7 @@ module Constants
user_considered_new_days: {
description: "The number of days a user is considered new. The default is 3 days, but you "\
"can disable this entirely by inputting 0.",
placeholder: ::SiteConfig.user_considered_new_days
placeholder: ::Settings::RateLimit.user_considered_new_days
}
}.freeze
end