We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93b47c9 commit d305fb4Copy full SHA for d305fb4
synapse/handlers/room.py
@@ -204,7 +204,11 @@ async def upgrade_room(
204
Raises:
205
ShadowBanError if the requester is shadow-banned.
206
"""
207
+ await self.creation_ratelimiter.ratelimit(requester, update=False)
208
+
209
+ # then apply the ratelimits
210
await self.common_request_ratelimiter.ratelimit(requester)
211
+ await self.creation_ratelimiter.ratelimit(requester)
212
213
user_id = requester.user.to_string()
214
0 commit comments