Admin API for server notice: consistently bypass rate limits (#16670)
* Admin API for server notice: disable rate limit for all calls * Add changelog * Update changelog.d/16670.bugfixpull/16678/head
parent
c8118ba8c9
commit
c432d8f18f
|
@ -0,0 +1 @@
|
||||||
|
Consistently bypass rate limits when using the server notice admin API.
|
|
@ -226,6 +226,7 @@ class ServerNoticesManager:
|
||||||
target=UserID.from_string(user_id),
|
target=UserID.from_string(user_id),
|
||||||
room_id=room_id,
|
room_id=room_id,
|
||||||
action="invite",
|
action="invite",
|
||||||
|
ratelimit=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _update_notice_user_profile_if_changed(
|
async def _update_notice_user_profile_if_changed(
|
||||||
|
@ -268,5 +269,6 @@ class ServerNoticesManager:
|
||||||
target=UserID.from_string(self.server_notices_mxid),
|
target=UserID.from_string(self.server_notices_mxid),
|
||||||
room_id=room_id,
|
room_id=room_id,
|
||||||
action="join",
|
action="join",
|
||||||
|
ratelimit=False,
|
||||||
content={"displayname": display_name, "avatar_url": avatar_url},
|
content={"displayname": display_name, "avatar_url": avatar_url},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue