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.
Memes
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
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?
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.
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.
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.
bruh, no way
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).
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).
This particular post has identified a bug specifically. Nothing in the code you keep references the community search tools to begin with.
So it is hard coded
Wait so its not against specifically anti musk its on musk in general.
It is specifically the string 'enoughmuskspam' in the code https://mander.xyz/post/46665744/24986265
Yeah the title of this post is confusing.
It reads as if piefed blocks anti-Musk content, not blocks Musk content.
Thanks for the context!
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.
You are right but piefed is hardcoded to violate basic compatibility in fediverse: https://communick.news/comment/8015757
For some items, yes.
For OP's nonsensical claim, no.
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".
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.