File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ Add support for the unstable [MSC4151](https://github.com/matrix-org/matrix-spec-proposals/pull/4151) report room API.
Original file line number Diff line number Diff line change @@ -107,7 +107,15 @@ async def on_POST(
107
107
108
108
109
109
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
+
111
119
PATTERNS = client_patterns (
112
120
"/org.matrix.msc4151/rooms/(?P<room_id>[^/]*)/report$" ,
113
121
releases = [],
You can’t perform that action at this time.
0 commit comments