Reduce default third party invite rate limit to 216 invites per day (#14487)

The previous default was the same as the `rc_message` rate limit, which
defaults to 17,280 per day.

Signed-off-by: Sean Quah <seanq@matrix.org>
pull/14490/head
Sean Quah 2022-11-18 18:10:01 +00:00 committed by GitHub
parent ae22e6e94f
commit 78e23eea05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

1
changelog.d/14487.misc Normal file
View File

@ -0,0 +1 @@
Reduce default third party invite rate limit to 216 invites per day.

View File

@ -150,8 +150,5 @@ class RatelimitConfig(Config):
self.rc_third_party_invite = RatelimitSettings(
config.get("rc_third_party_invite", {}),
defaults={
"per_second": self.rc_message.per_second,
"burst_count": self.rc_message.burst_count,
},
defaults={"per_second": 0.0025, "burst_count": 5},
)