From 6894b8d14cb0b02e8a6fd0120ffd63b0387fbd98 Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 27 May 2025 06:14:26 +0200 Subject: [PATCH 10/24] Use parse_boolean for unredacted content Signed-off-by: Rory& --- synapse/rest/client/room.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index 83664814a6..f17c1f5e26 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -1053,10 +1053,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" ) -- 2.53.0