Skip to content

Commit

Permalink
Clarify that MSC4151 is enabled on matrix.org
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Jun 12, 2024
1 parent f1c4dfb commit 939a572
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/17296.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for the unstable [MSC4151](https://github.com/matrix-org/matrix-spec-proposals/pull/4151) report room API.
10 changes: 9 additions & 1 deletion synapse/rest/client/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,15 @@ async def on_POST(


class ReportRoomRestServlet(RestServlet):
# https://github.com/matrix-org/matrix-spec-proposals/pull/4151
"""This endpoint lets clients report a room for abuse.
Whilst MSC4151 is not yet merged, this unstable endpoint is enabled on matrix.org
for content moderation purposes, and therefore backwards compatibility should be
carefully considered when changing anything on this endpoint.
More details on the MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/4151
"""

PATTERNS = client_patterns(
"/org.matrix.msc4151/rooms/(?P<room_id>[^/]*)/report$",
releases=[],
Expand Down

0 comments on commit 939a572

Please sign in to comment.