Skip to content

Commit eb2c25d

Browse files
docs/moderators.md: add section on Trusted Reporters (#332)
* docs/moderators.md: add section on Trusted Reporters * Update docs/moderators.md Co-authored-by: Thibault Martin <[email protected]> * clarify that alertThreshold is not the same as displayReports Co-authored-by: Thibault Martin <[email protected]>
1 parent 9f872f7 commit eb2c25d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/moderators.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,26 @@ Adding protected rooms on the fly is as easy as `!mjolnir rooms add <room alias>
9494
which are protected with `!mjolnir rooms`, and remove a room with `!mjolnir rooms remove <room alias>`. Note
9595
that rooms which are listed in the config may be protected again when the bot restarts - to remove these rooms
9696
permanently from protection, remove them from the config.
97+
98+
## Trusted Reporters
99+
100+
Mjolnir has an (optional) system in which it will poll Synapse for new reports, and when it sees sufficient
101+
amounts of reports from trusted users on an given message, it will take an action, such as redacting the message.
102+
103+
The users to trust, the actions to take, and the thresholds needed for those actions are configurable.
104+
105+
Prerequisites:
106+
* `pollReport: true` in Mjolnir config file
107+
* retart Mjolnir
108+
* `!mjolnir enable TrustedReporters`
109+
* `!mjolnir config add TrustedReporters.mxids @trusteduser:example.com`
110+
* `!mjolnir config set TrustedReporters.alertThreshold 3`
111+
112+
TrustedReporters supports 3 different thresholds; `alertThreshold`, `redactThreshold`, and `banThreshold`.
113+
By default, only `alertThreshold` is enabled, and is set to `3`. Mjolnir will only consider reports that
114+
take place in rooms Mjolnir is protecting. `alertThreshold` is separate from Mjolnir's ability to log
115+
each report, which is `displayReports` in Mjolnir's config file.
116+
117+
Make sure that anything you have sat in front of Synapse (e.g. nginx) is correctly configured to forward
118+
`/_synapse/admin/v1/event_reports` and `/_synapse/admin/v1/rooms/${room_id}/context/${revent_id}` to
119+
Synapse, or Mjolnir will not be able to poll for new reports. Mjolnir polls for new reports every 30 seconds.

0 commit comments

Comments
 (0)