Skip to content

Commit

Permalink
Skip updating member events for discord users
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Dec 12, 2023
1 parent d4626cb commit 6aa9059
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synapse/handlers/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6aa9059

Please sign in to comment.