this post was submitted on 21 Sep 2023
20 points (91.7% liked)

Fediverse

28418 readers
1379 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 1 year ago
MODERATORS
 

I want to create some filters for my Mastodon account to hide certain content.

For example I want to hide all posts that contain spoilers for a game. I can't just add the keyword "spoiler" or "leak" to the filter because that would hide them for any game obviously. But how do the filters in Mastodon work when I add multiple keywords to one? Do they act as logical AND or OR? So when I add "game name" and "spoiler" as separate keywords to a filter, do I hide every post that contains "game name" or "spoiler" in it, or do I only hide posts that contain both keywords.

The UI in Mastodon doesn't really make this clear tbh.

Edit: And do the filters only apply to non-followed accounts or to all?

you are viewing a single comment's thread
view the rest of the comments
[–] ElectroVagrant@lemmy.world 2 points 1 year ago

I've mainly done this with hashtags, so I may be off if it differs somewhat for keywords, but I'm pretty sure it works as a logical OR.

So if I put a bunch of hashtags in a filter for sports like #sports, #football, #hockey, etc. if a post contains any one of those tags, it should filter it for me. The nice part is you can adjust it so that it either completely hides the filtered results so they don't clutter up your feeds, or hide with warning and the name of the filter on the warning notice, which allows you to click & review the post to see whether you really wanted it caught by your filter or not.

If you're just starting out you'd probably want to run it with warnings first to get a sense of whether it's working as desired, and if not adjust as needed.

Thankfully folks tend to be pretty respectful of spoiler concerns and will specifically say spoilers below when writing about them, use content warnings to hide them, and use hashtags like #[GameName]spoilers, which can help when making filters. It's not ideal, but if I really don't want to see spoilers for something, I'll filter by its name and hashtag and set it not to expire (you can set filters to last only a week if you like, so you don't forget to disable them).