this post was submitted on 02 Feb 2026
193 points (83.2% liked)

Memes

54190 readers
1487 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 6 years ago
MODERATORS
 

cross-posted from: https://mander.xyz/post/46665693

PieFed blocks !enoughmuskspam@lemmy.world (and a few other communities) by default. At the time of writing this post, you can search for the comm on many PieFed instances and you will not find it.

The block is only by default. The admin can choose to override it. Many big instances have done so, including

  • piefed.social
  • piefed.world
  • piefed.zip

See more information here.

all 44 comments
sorted by: hot top controversial new old
[–] 9point6@lemmy.world 60 points 2 days ago* (last edited 2 days ago)

Wow, so I thought having an explicit 4chan block was kinda silly enough, but finding out it works by running OCR on every uploaded image and looking for the words "Anonymous" and "No" is absurdly silly.

[–] RedSnt@feddit.dk 33 points 3 days ago (1 children)

This is disturbing. I'm glad I'm on feddit.dk and I saw "my" admin (SorteKanin) in the comments of that "more information here" comment thread pointing out how that shouldn't be hardcoded into the software.

[–] DGen@piefed.zip 2 points 1 day ago

Hm noch. They offer you a Option to filter it. Atlest at piefed.zip

[–] freamon@lemmy.world 18 points 3 days ago (1 children)

This has come up before. Hopefully you're just not understanding the code, rather than deliberately misrepresenting it to others. Even a casual scan should clue people in to the fact that the linked function isn't concerned with federation blocks (the same list that 'enoughmuskspam' is in also contains 'memes' and 'piracy', which every PieFed instance has without any overrides required).

I'll copy-paste my comment from last time (I can't link to it 'cos is was in reply to a deleted post). The first 2 paras are the most relevant bits:

The code that OP has linked to is part of a convenience function for admins to add content to their new instances. It can query individual remote instances (e.g. lemmy.world), or it can query lemmyverse.net, and fetch communities that look to be popular and active.

It’s completely unrelated to routine federation, and doesn’t prevent anyone subscribing to communities that may have those words in their names.

The admin function could potentially be used to fetch hundreds of communities. It runs as a background process, so you don’t know what they were until after they’d been followed. The “bad words” list acts as a safeguard against bringing in things you might not want or expect. One reason is that you may want to curate the first impression you give new visitors, as there as some that will be put off by the “fuck this” and “shitpost that” reddit-isms. Another is that you don’t typically want communities that are disproportionately popular than others (e.g. if you bring in the default 25 communities, and one of is 196, then it completely dominate your front page).

If there’s a particular community that you are interested in (e.g. because you moderate it), using this function isn’t an efficient way to add it. In addition to the “bad words” filters, it will also exclude communities that are NSFW, or below thresholds for popularity and activity. Rather than fetching a bunch of communities at the same time, and hoping that the one you want is included, it’s better to just add it manually (via a ! link or by using the “Add remote community” link) in much the same way as you would on any other platform.

[–] Liketearsinrain@lemmy.ml 47 points 2 days ago (1 children)

I was curious so had a look around.

I assume it's this https://codeberg.org/rimu/pyfedi/src/commit/cfc35b0e1b812d929d62aea87f47014f8ce845b4/app/main/routes.py#L131

if current_user.is_anonymous:
        flash(_('Create an account to tailor this feed to your interests.'))
        content_filters = {'-1': {'trump', 'elon', 'musk'}}

Some of the complaints about hardcoded values were fixed in the last commits, but the code is a spaghetti mess littered with ad-hoc hacks for random whims of the developers. This is bad software design and disrespectful to users imo, but to each their own.

[–] idriss@lemmy.ml 12 points 3 days ago (1 children)
[–] felsiq@piefed.zip 17 points 3 days ago (5 children)

No way is right, it’s not hardcoded (there’s just a filter on the word ‘musk’ as a sane default that admins can choose to remove).

[–] BB84@mander.xyz 25 points 2 days ago (1 children)

It is hardcoded. The string 'enoughmuskspam' is right here https://codeberg.org/rimu/pyfedi/src/commit/b7a9ea0eea3a80f710e0b5b63cf0bbecde60f8bf/app/admin/routes.py#L373

I have noted in other threads and will note again here because people keep attacking me about this: hardcoding does not mean the behavior is not circumventable. It just means the string is in the source file (rather than a config file or database).

[–] Skavau@lemmy.world -2 points 2 days ago

This particular post has identified a bug specifically. Nothing in the code you keep references the community search tools to begin with.

[–] BrainInABox@lemmy.ml 13 points 2 days ago

So it is hard coded

[–] pineapple@lemmy.ml 17 points 3 days ago (2 children)

Wait so its not against specifically anti musk its on musk in general.

[–] BB84@mander.xyz 11 points 2 days ago

It is specifically the string 'enoughmuskspam' in the code https://mander.xyz/post/46665744/24986265

[–] CosmicTurtle0@lemmy.dbzer0.com 15 points 3 days ago (1 children)

Yeah the title of this post is confusing.

It reads as if piefed blocks anti-Musk content, not blocks Musk content.

[–] BB84@mander.xyz 4 points 2 days ago* (last edited 2 days ago)

The string 'enoughmuskspam' is in the code https://mander.xyz/post/46665744/24986265

[–] idriss@lemmy.ml 11 points 3 days ago

Thanks for the context!

[–] UltraGiGaGigantic@lemmy.ml 4 points 2 days ago* (last edited 2 days ago)

Let people do a bad job of running their own instance. Its their instance. So long as everyone is informed on how it works, who cares?