From 7b4c532ab70079bfda251f9ef1e44aa70e726249 Mon Sep 17 00:00:00 2001
From: babolivier
See also the Client-Server API Spec on pushers.
-Shadow-banning is a useful tool for moderating malicious or egregiously abusive users. A shadow-banned users receives successful responses to their client-server API requests, but the events are not propagated into rooms. This can be an effective tool as it @@ -1010,12 +1010,15 @@ pivoting to another account.
or broken behaviour for the client. A shadow-banned user will not receive any notification and it is generally more appropriate to ban or kick abusive users. A shadow-banned user will be unable to contact anyone on the server. -The API is:
+To shadow-ban a user the API is:
POST /_synapse/admin/v1/users/<user_id>/shadow_ban
+To un-shadow-ban a user the API is:
+DELETE /_synapse/admin/v1/users/<user_id>/shadow_ban
+
To use it, you will need to authenticate by providing an access_token
for a
server admin: Admin API
An empty JSON dict is returned.
+An empty JSON dict is returned in both cases.
Parameters
The following parameters should be set in the URL:
This endpoint will work even if registration is disabled on the server, unlike
/_matrix/client/r0/register/available
.
The API is:
-POST /_synapse/admin/v1/username_availabile?username=$localpart
+GET /_synapse/admin/v1/username_available?username=$localpart
The request and response format is the same as the /_matrix/client/r0/register/available API.
To use it, you will need to authenticate by providing an access_token
for a
--
cgit 1.5.1