From 54d872e19b81b4b75039b915b980106a3cb66c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= <76261501+zecakeh@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:13:36 +0100 Subject: [PATCH] Fix added-in Matrix spec version for report room endpoint (#2028) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #1938 where they were incorrectly marked as 1.12 instead of 1.13. Signed-off-by: Kévin Commaille --- changelogs/client_server/newsfragments/2028.new | 1 + content/client-server-api/modules/report_content.md | 2 +- data/api/client-server/report_content.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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 00000000..718ee755 --- /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). diff --git a/content/client-server-api/modules/report_content.md b/content/client-server-api/modules/report_content.md index 651b0939..6f34e938 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 b8354090..654784ca 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