summary refs log tree commit diff
path: root/packages/overlays/matrix-synapse/patches/0006-Use-parse_boolean-for-unredacted-content.patch
blob: 1c2841c287e79ec0554dbb9a7333a31adfcb4db2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 07d72fd39ea3044577322647d5ed1dd8cb6f77d9 Mon Sep 17 00:00:00 2001
From: Rory& <root@rory.gay>
Date: Tue, 27 May 2025 06:14:26 +0200
Subject: [PATCH 06/11] Use parse_boolean for unredacted content

---
 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 4600a87778..e838341fde 100644
--- a/synapse/rest/client/room.py
+++ b/synapse/rest/client/room.py
@@ -915,10 +915,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.49.0