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 Nov 1, 2023
1 parent 35646dd commit 9d154ec
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 @@ -382,6 +382,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 9d154ec

Please sign in to comment.