summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-27 06:14:26 +0200
committerRory& <root@rory.gay>2025-06-27 19:46:32 +0200
commit9c3f28c68cb89e81a98561e0898b00c43a280a65 (patch)
treeb5a16ae6e65da90d6b137079c6aefdd4499bae43
parentLog policy server rejected events (diff)
downloadsynapse-9c3f28c68cb89e81a98561e0898b00c43a280a65.tar.xz
Use parse_boolean for unredacted content
-rw-r--r--synapse/rest/client/room.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py

index bb41575d46..63ea52baf8 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py
@@ -914,10 +914,9 @@ class RoomEventServlet(RestServlet): requester = await self.auth.get_user_by_req(request, allow_guest=True) include_unredacted_content = self.msc2815_enabled and ( - parse_string( + parse_boolean( request, - "fi.mau.msc2815.include_unredacted_content", - allowed_values=("true", "false"), + "fi.mau.msc2815.include_unredacted_content" ) == "true" )