Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature/admin] Drop messages from other instances based on a filter/regex #835

Open
Tracked by #2676
f0x52 opened this issue Sep 16, 2022 · 2 comments
Open
Tracked by #2676
Assignees
Labels
enhancement New feature or request federation Issue relates to S2S/federation

Comments

@f0x52
Copy link
Contributor

f0x52 commented Sep 16, 2022

Similar to users filtering messages it would be nice for admins to be able to set global filters too, either adding a CW or dropping toots completely based on instance/user/toot content

@f0x52 f0x52 added the enhancement New feature or request label Sep 16, 2022
@f0x52 f0x52 added the frontend-api Backend requirement for Frontend stuff label Oct 3, 2022
@technomancy
Copy link
Contributor

I have a very rough proof of concept of this here: technomancy@a690b18

It allows you to write plugins in Lua or Fennel which get loaded at boot and can add CWs or change the contents of statuses.

It's extremely rough and hacky (I've basically never used golang before) but it's a pretty small change if you want to try running a fork instead of mainline gts. I'm not sure it makes sense for mainline gts because it brings in a rather large dependency.

@tsmethurst tsmethurst added federation Issue relates to S2S/federation and removed frontend-api Backend requirement for Frontend stuff labels Feb 22, 2024
@tsmethurst tsmethurst changed the title [feature] admin message filtering [feature/admin] Drop messages from other instances based on a filter/regex Feb 22, 2024
@NyaaaWhatsUpDoc
Copy link
Member

i currently have work funded to add something along these lines which i plan to work on in the next few months :)

the actual work is to be able to modify incoming messages specifically only to add CWs based on filtering, but as part of it i will be making it modularisable / pluggable so adding filtering to drop messages really wouldn't be much on top of it at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request federation Issue relates to S2S/federation
Projects
None yet
Development

No branches or pull requests

4 participants