From 6aa9059cc8db13ea301f45031992a8afe2dd78bd Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Sat, 21 Oct 2023 15:17:18 -0600 Subject: [PATCH] Skip updating member events for discord users --- synapse/handlers/profile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index e043fd53228b..42afe22910ac 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -391,6 +391,10 @@ async def _update_join_states( if not self.hs.is_mine(target_user): return + # T2B: don't update membership events for discord users + if target_user.to_string().startswith("@_discord"): + return + await self.request_ratelimiter.ratelimit(requester) # Do not actually update the room state for shadow-banned users.