Skip to content

Commit 5db3eec

Browse files
authored
Clarify that MSC4151 is enabled on matrix.org (#17296)
This clarifies in the comments that the MSC is being used in matrix.org See #17270
1 parent f1c4dfb commit 5db3eec

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

changelog.d/17296.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support for the unstable [MSC4151](https://github.com/matrix-org/matrix-spec-proposals/pull/4151) report room API.

synapse/rest/client/reporting.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,15 @@ async def on_POST(
107107

108108

109109
class ReportRoomRestServlet(RestServlet):
110-
# https://github.com/matrix-org/matrix-spec-proposals/pull/4151
110+
"""This endpoint lets clients report a room for abuse.
111+
112+
Whilst MSC4151 is not yet merged, this unstable endpoint is enabled on matrix.org
113+
for content moderation purposes, and therefore backwards compatibility should be
114+
carefully considered when changing anything on this endpoint.
115+
116+
More details on the MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/4151
117+
"""
118+
111119
PATTERNS = client_patterns(
112120
"/org.matrix.msc4151/rooms/(?P<room_id>[^/]*)/report$",
113121
releases=[],

0 commit comments

Comments
 (0)