this post was submitted on 02 Feb 2026
158 points (81.1% liked)

Memes

54121 readers
1060 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 41 comments
sorted by: hot top controversial new old
[–] 9point6@lemmy.world 51 points 19 hours ago* (last edited 18 hours 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.

[–] UltraGiGaGigantic@lemmy.ml 4 points 12 hours ago* (last edited 12 hours 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?

[–] RedSnt@feddit.dk 27 points 21 hours 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.

[–] freamon@lemmy.world 17 points 1 day 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 41 points 19 hours 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 10 points 1 day ago (1 children)
[–] felsiq@piefed.zip 18 points 1 day 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 19 points 13 hours 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 12 hours 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 9 points 12 hours ago

So it is hard coded

[–] pineapple@lemmy.ml 16 points 22 hours ago (2 children)

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

[–] BB84@mander.xyz 6 points 13 hours ago

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

[–] CosmicTurtle0@lemmy.dbzer0.com 14 points 20 hours 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 3 points 13 hours ago* (last edited 13 hours ago)

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

[–] idriss@lemmy.ml 11 points 1 day ago

Thanks for the context!

[–] curbstickle@anarchist.nexus -5 points 23 hours ago* (last edited 10 hours ago) (2 children)

I don't think you know what "hardcoded" means.

Edit: https://anarchist.nexus/modlog?suspect_user_name=bb84%40mander.xyz

Everyone is wrong but you about the definition of words, got it.

[–] diffaldo@lemmy.dbzer0.com 5 points 7 hours ago (1 children)

You are right but piefed is hardcoded to violate basic compatibility in fediverse: https://communick.news/comment/8015757

[–] curbstickle@anarchist.nexus 0 points 7 hours ago

For some items, yes.

For OP's nonsensical claim, no.

[–] BB84@mander.xyz 5 points 13 hours ago (1 children)
[–] curbstickle@anarchist.nexus -3 points 12 hours ago (1 children)

That is not what hardcoded means.

The "hard" part of "hardcoded" means you have to edit the source directly to make changes (or at runtime via memory editing).

It does not mean "written as part of the source but editable via gui".

Unless there is some other item I'm missing here from a casual glance at common filters included as an example, then yes, you are misunderstanding the term "hardcoded".

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

How would you go about changing the seven_things_plus variable via the GUI?

You can't. You can get around the filtering by other means, but that doesn't make seven_things_plus any less hardcoded.

Maybe the term hardcoded have some particular negative connotations for you. In that case please explain what that connotation may be.

The correct definition just means data in the code rather than loaded at runtime. It is not necessarily a bad thing (things like unit conversion factors are perfectly reasonable to hardcode). In this case, I'll let everyone judge for themselves if hardcoding 'enoughmuskspam' is acceptable.