summary refs log tree commit diff
path: root/synapse/handlers/admin.py
diff options
context:
space:
mode:
authormorguldir <morguldir@protonmail.com>2024-12-23 12:19:35 +0100
committerGitHub <noreply@github.com>2024-12-23 11:19:35 +0000
commit7c2284b2f22def70e46448d035969951a0ce2f4c (patch)
treea55c37e4084a5d37fe03eba74ef4eaa6826442cc /synapse/handlers/admin.py
parentStop using twisted.internet.defer.returnValue (#18020) (diff)
downloadsynapse-7c2284b2f22def70e46448d035969951a0ce2f4c.tar.xz
Make admin api redactions use the requester to send the redaction (#18029)
Diffstat (limited to 'synapse/handlers/admin.py')
-rw-r--r--synapse/handlers/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/admin.py b/synapse/handlers/admin.py

index d1194545ae..f3e7790d43 100644 --- a/synapse/handlers/admin.py +++ b/synapse/handlers/admin.py
@@ -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