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 Oct 21, 2023
1 parent 76afa0f commit ec390da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synapse/handlers/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ 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"):
logger.info("skipping profile update for discord user", target_user.to_string())
return

await self.request_ratelimiter.ratelimit(requester)

# Do not actually update the room state for shadow-banned users.
Expand Down

0 comments on commit ec390da

Please sign in to comment.