matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Banning / Restricting / Redacting / Muting / Filtering / Blocking Out List of Words #16246

Closed candidexmedia closed 1 year ago

candidexmedia commented 1 year ago

Description:

Hello! I'm not sure if this is the right avenue to submit this request, so please let me know if it should be moved.

Use Case: What I would like to do?

Why add this feature?

Examples from other services:

Discord Automod: https://support.discord.com/hc/en-us/articles/4421269296535-AutoMod-FAQ

Telegram (public bot): https://botostore.com/c/grep_robot/

Mastodon: https://docs.joinmastodon.org/user/moderating/#filters

Peertube (glavliiit plugin): https://joinpeertube.org/plugins-selection

YouTube: https://support.google.com/youtube/answer/9483359?hl=en#zippy=%2Cblocked-words

How it could work

Moderator/owner side: Paste, upload a txt file, or type a list of words that could result in a user getting...

User side (wishing to mute terms): Much like ignoring a user, messages containing muted terms will not be seen by the user.

User side (sending banned word in a room): "Warning" word: An alert is sent warning the user that they're using terms that are restricted in the room so that they have the chance to rewrite their message

"Hold - moderation" word: User is warned that their message has to be reviewed for moderation

"Kicked/Banned" word: User is automatically kicked or banned once they attempt to send the message.

clokep commented 1 year ago

I suspect this would best be positioned as a bot or AS. Otherwise it would likely need spec work for Synapse to support this. In E2EE rooms though the server can't really do much (which points you back to a bot or AS).

I'm going to close this as I don't think it is currently actionable from the Synapse team.