From 9ac831a8bf80ddf9e316018c3119f082f00f4b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 9 Dec 2024 15:37:45 +0100 Subject: [PATCH 1/2] Fix added-in Matrix spec version for report room endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- content/client-server-api/modules/report_content.md | 2 +- data/api/client-server/report_content.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/client-server-api/modules/report_content.md b/content/client-server-api/modules/report_content.md index 651b09395..6f34e938b 100644 --- a/content/client-server-api/modules/report_content.md +++ b/content/client-server-api/modules/report_content.md @@ -25,7 +25,7 @@ be legitimate. verify that the reporting user is currently joined to the room the event is in before accepting a report. -{{% added-in v="1.12" %}} Contrarily, servers MUST NOT restrict room reports +{{% added-in v="1.13" %}} Contrarily, servers MUST NOT restrict room reports based on whether or not the reporting user is joined to the room. This is because users can be exposed to harmful content without being joined to a room. For instance, through room directories or invites. diff --git a/data/api/client-server/report_content.yaml b/data/api/client-server/report_content.yaml index b83540904..654784ca9 100644 --- a/data/api/client-server/report_content.yaml +++ b/data/api/client-server/report_content.yaml @@ -18,7 +18,7 @@ info: paths: "/rooms/{roomId}/report": post: - x-addedInMatrixVersion: "1.12" + x-addedInMatrixVersion: "1.13" summary: Report a room as inappropriate. description: |- Reports a room as inappropriate to the server, which may then notify From bbb779178e8eaf36a050a4185615209ec5cec000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 9 Dec 2024 15:41:01 +0100 Subject: [PATCH 2/2] Add changelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- changelogs/client_server/newsfragments/2028.new | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/client_server/newsfragments/2028.new diff --git a/changelogs/client_server/newsfragments/2028.new b/changelogs/client_server/newsfragments/2028.new new file mode 100644 index 000000000..718ee7550 --- /dev/null +++ b/changelogs/client_server/newsfragments/2028.new @@ -0,0 +1 @@ +Add `POST /_matrix/client/v3/rooms/{roomId}/report` as per [MSC4151](https://github.com/matrix-org/matrix-spec-proposals/pull/4151).