mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 00:38:42 -04:00
Do not propagate profile changes of shadow-banned users into rooms. (#8157)
This commit is contained in:
parent
e3c91a3c55
commit
2e6c90ff84
5 changed files with 291 additions and 160 deletions
|
@ -380,7 +380,7 @@ class RoomMemberHandler(object):
|
|||
# later on.
|
||||
content = dict(content)
|
||||
|
||||
if not self.allow_per_room_profiles:
|
||||
if not self.allow_per_room_profiles or requester.shadow_banned:
|
||||
# Strip profile data, knowing that new profile data will be added to the
|
||||
# event's content in event_creation_handler.create_event() using the target's
|
||||
# global profile.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue