diff options
author | Mathieu Velten <matmaul@gmail.com> | 2023-11-22 14:47:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 13:47:29 +0000 |
commit | c432d8f18fc2eb35fff780c6d76dd31841204242 (patch) | |
tree | c650a928bd10e28b468ec56095fe82a3a13f74be /synapse/server_notices/server_notices_manager.py | |
parent | Bump pydantic from 2.4.2 to 2.5.1 (#16663) (diff) | |
download | synapse-c432d8f18fc2eb35fff780c6d76dd31841204242.tar.xz |
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.bugfix
Diffstat (limited to 'synapse/server_notices/server_notices_manager.py')
-rw-r--r-- | synapse/server_notices/server_notices_manager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/server_notices/server_notices_manager.py b/synapse/server_notices/server_notices_manager.py index 9732dbdb6e..c3552d6c73 100644 --- a/synapse/server_notices/server_notices_manager.py +++ b/synapse/server_notices/server_notices_manager.py @@ -226,6 +226,7 @@ class ServerNoticesManager: target=UserID.from_string(user_id), room_id=room_id, action="invite", + ratelimit=False, ) async def _update_notice_user_profile_if_changed( @@ -268,5 +269,6 @@ class ServerNoticesManager: target=UserID.from_string(self.server_notices_mxid), room_id=room_id, action="join", + ratelimit=False, content={"displayname": display_name, "avatar_url": avatar_url}, ) |