mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-26 09:26:35 +00:00
Make admin api redactions use the requester to send the redaction (#18029)
This commit is contained in:
parent
d69c00b5a1
commit
7c2284b2f2
1
changelog.d/18029.bugfix
Normal file
1
changelog.d/18029.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix a bug preventing the admin redaction endpoint from working on messages from remote users.
|
|
@ -473,7 +473,7 @@ class AdminHandler:
|
|||
"type": EventTypes.Redaction,
|
||||
"content": {"reason": reason} if reason else {},
|
||||
"room_id": room,
|
||||
"sender": user_id,
|
||||
"sender": requester.user.to_string(),
|
||||
}
|
||||
if room_version.updated_redaction_rules:
|
||||
event_dict["content"]["redacts"] = event.event_id
|
||||
|
|
Loading…
Reference in a new issue