feat: added configurable ratelimit feature in discussions (#37094)

This commit is contained in:
Muhammad Adeel Tajamul
2025-07-31 17:35:10 +05:00
committed by GitHub
parent 02c45c5325
commit b658470f8b
7 changed files with 313 additions and 5 deletions

View File

@@ -780,3 +780,6 @@ GENERATE_PROFILE_SCORES = False
# in the AccountCreationForm and the user_api through the ENABLE_UNICODE_USERNAME feature flag.
USERNAME_REGEX_PARTIAL = r'[\w .@_+-]+'
USERNAME_PATTERN = fr'(?P<username>{USERNAME_REGEX_PARTIAL})'
DISCUSSION_RATELIMIT = '100/m'
SKIP_RATE_LIMIT_ON_ACCOUNT_AFTER_DAYS = 0