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 May 18, 2024
1 parent a94ddbc commit a94f2a6
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 @@ -398,6 +398,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 a94f2a6

Please sign in to comment.