mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-29 10:06:13 -05:00
Rate limit early
This commit is contained in:
parent
d6118c5be6
commit
176f31c2e3
@ -710,8 +710,9 @@ class RoomMemberHandler(object):
|
|||||||
Codes.FORBIDDEN,
|
Codes.FORBIDDEN,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check whether we'll be ratelimited
|
# We need to rate limit *before* we send out any 3PID invites, so we
|
||||||
yield self.base_handler.ratelimit(requester, update=False)
|
# can't just rely on the standard ratelimiting of events.
|
||||||
|
yield self.base_handler.ratelimit(requester)
|
||||||
|
|
||||||
invitee = yield self._lookup_3pid(
|
invitee = yield self._lookup_3pid(
|
||||||
id_server, medium, address
|
id_server, medium, address
|
||||||
|
Loading…
Reference in New Issue
Block a user