-
Notifications
You must be signed in to change notification settings - Fork 133
Abuse report delivery
Calle Laakkonen edited this page Jan 13, 2018
·
1 revision
The "report abuse" feature allows users to send a message to server moderators. On the client side, the report is sent either during the login (session selection stage) or during a session. The client sends a report command to the server which delivers it further.
Currently, only a HTTP based delivery mechanism is implemented.
The following setting are set in the server configuration:
- Delivery URL
- Auth token
The server delivers the message by making a HTTP POST request
to the configured delivery URL. The Authorization
header will
be set to Token <Auth token>
. The message body is JSON encoded:
{
"session": "Session ID",
"sessionTitle": "Session title",
"user": "username",
"auth": true/false (is the user authenticated),
"ip": "reporter's IP address",
"message": "report text",
"offset": session size in bytes,
"perp": ID of offending user,
"users": [
{
"id": user ID,
"name": "username",
"auth": true/false,
"mod": true/false,
"ip": "user's IP address"
},
...
]
}
In addition to the report message written by the user, the full report also includes additional context to help the moderator reading it:
- The name and info of the reporter
- The ID of the session
- The ID of the user the report is about (if omitted, the report is about the session in general)
- The title of the session
- The size of the session history at the time the report was sent (offset)
- List of users in the session