Skip to content

Commit

Permalink
Make admin api redactions use the requester to send the redaction (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
morguldir authored Dec 23, 2024
1 parent d69c00b commit 7c2284b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/18029.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug preventing the admin redaction endpoint from working on messages from remote users.
2 changes: 1 addition & 1 deletion synapse/handlers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ async def _redact_all_events(
"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
Expand Down

0 comments on commit 7c2284b

Please sign in to comment.