83
submitted 3 months ago* (last edited 3 months ago) by qaz@lemmy.world to c/memes@lemmy.world

Code for people interested https://codeberg.org/rimu/pyfedi/src/branch/main/app/admin/routes.py#L373

I commented it out, rebuild the Docker containers and it works now 👍

top 50 comments
sorted by: hot top controversial new old
[-] degenerate_neutron_matter@fedia.io 54 points 3 months ago

List of blocked words in community names:

shit
piss
fuck
cunt
cocksucker
motherfucker
tits
memes
piracy
196
greentext
usauthoritarianism
enoughmuskspam
political_weirdos
4chan

Seems like one of the PieFed devs has some opinions about the kind of content they dislike, and are unilaterally forcing that on every PieFed instance. I can somewhat understand filtering out curse words, but specific communities should not blocked by default, and definitely not hidden in a hardcoded list in the source code.

Edit: Important context here: https://lemmy.world/comment/21323475 Seems this blocklist is more limited in scope; it's not blocking federation entirely, just blocking (from what I can tell) their appearance in search and automatically federating with them when adding an instance. Still problematic to exclude specific communities in a non-configurable way with little justification IMO.

[-] Zoot@reddthat.com 32 points 3 months ago

Damn this should honestly be spread and talked about more. I don't think many people know this is a thing?

[-] 4am@lemmy.zip 54 points 3 months ago

Considering PieFed users won’t shut the fuck up about how much better and less politically opinionated it is, yeah we should probably shout this from the rooftops.

Reminds me of Brave browser users a bit

[-] pivot_root@lemmy.world 8 points 3 months ago* (last edited 3 months ago)

One of PyFed's selling points was that it was easier to work with than Lemmy. It's going to be amusing when that takes a 180 turn and people start complaining.

Python is great for prototyping and iterating on small projects or as glue for modules written in C and C++. What it isn't great at is linearly scaling on a single node. When the day that throwing more powerful hardware at the problem stops being an option, Kubernetes is going to walk through that door and fuck any semblance of simplicity up.

[-] vga@sopuli.xyz 4 points 3 months ago* (last edited 3 months ago)

I would agree with that sentiment, but seems like peoples' actual experiences are a bit different: https://jeena.net/lemmy-switch-to-piefed

Possibly a testament of how software architecture can be more important than any lower level technical decisions.

[-] mushroomman_toad@lemmy.dbzer0.com 1 points 3 months ago

I think Lemmy has some in-memory data structures that limit the backend to a single node, too. Also postgres is great, but Lemmy really fucked up their database performance somehow.

But yeah large python codebases turn into spaghetti really quickly.

[-] jerkface@lemmy.ca 24 points 3 months ago

This isn't the first time I've encountered an extremely pointed line of code in piefed meant to fuck over one person specifically. It's very concerning now that it's a pattern.

[-] degenerate_neutron_matter@fedia.io 11 points 3 months ago

Got any other specific examples?

[-] Vespair@lemmy.zip 16 points 3 months ago

I'm not okay with them filtering profanity, who the fuck are they to define what is or is not acceptable?

[-] degenerate_neutron_matter@fedia.io 8 points 3 months ago

I don't think it's a good idea either, but it's less egregious than filtering specific communities.

[-] Vespair@lemmy.zip 6 points 3 months ago

I probably agree, but frankly I find neither acceptable

[-] Kolanaki@pawb.social 15 points 3 months ago* (last edited 3 months ago)

They also put "memes" and "enoughmuskspam."

The latter I guess could be used to stop Musk spam (since the community is literally nothing but Elon Musk news) but not allowing the word "memes" in a community name?

Utterly stupid.

But they do appear to be fans of Carlin based on the first 7 banned words.

There's no racial slurs in there either. I might have assumed this was merely an example an operator is meant to edit themselves, but these are some weird ass choices for even that.

[-] user224@lemmy.sdf.org 5 points 3 months ago
[-] kittenzrulz123@lemmy.dbzer0.com 5 points 3 months ago

I wonder why the dev had an issue with 196

[-] user224@lemmy.sdf.org 10 points 3 months ago
[-] AtariDump@lemmy.world 5 points 3 months ago

George Carlin would be amused.

[-] JackbyDev@programming.dev 3 points 3 months ago

Isn't there a Java based Lemmy compatible thing too? I forgot what it was called but I think there is one.

load more comments (4 replies)
[-] thomasdouwes@sopuli.xyz 26 points 3 months ago

Sir a second hardcoded blacklist hit the fediverse

[-] NotSteve_@piefed.ca 19 points 3 months ago* (last edited 3 months ago)

What, why 196? Actually why any of these? I get 4chan and greentext sort of(?) but even ignoring the terrible programming practices here, this is really stupid.

Edit: actually almost makes me regret switching to Piefed

[-] lethargicpuppy14@sh.itjust.works 10 points 3 months ago

They just removed it from the list 15 minutes ago

[-] NotSteve_@piefed.ca 18 points 3 months ago

Ah, that's good to hear. I'm still sketched out by the hardcoded blacklist of terms though. I'm very much a person against the sort of free speech that hinders other's freedom to live without discrimination but the filter still seems so arbitrary and entirely the response to the dev's own vandettas and that just gives me bad vibes.

On top of that, hardcoding English language terms to block is bad programming on a number of levels. Why isn't it a configurable list? The hardcoded values don't contain any other language variants so you can still have those communities if you speak something other than English (or just add an extra couple characters or anything really)

[-] FiniteBanjo@feddit.online 3 points 3 months ago* (last edited 3 months ago)

Maybe they've had a bad experience with the 196 moderators, as many have. I hope that's all it is.

[-] Holytimes@sh.itjust.works 10 points 3 months ago

The mods are awful. But basically all mods are awful. You have to have brain damage to want to be a moderator of an online community.

So it is a bit of a catch 22

[-] AtariDump@lemmy.world 1 points 3 months ago

I know the feeling (over here on .world)

load more comments (1 replies)
[-] deegeese@sopuli.xyz 16 points 3 months ago

Hardcoded blacklists are never a good idea.

That shit belongs in a config file.

[-] darkevilmac@lemmy.zip 16 points 3 months ago

Jesus that's a lot of spaghetti code, and why are they hardcoding a bunch of terms? Is this just for a public facing site, or does every deployed instance effectively filter these out?

[-] qaz@lemmy.world 20 points 3 months ago* (last edited 3 months ago)

It's hardcoded in the PieFed source code, so every instance does this by default unless you patch it like I did.

The combined swearwords + excluded communities list seems to appear at least 3 times in the codebase (not referenced, copied verbatim).

Let's just say that it wouldn't pass my code review if I saw this at work

EDIT: It has been removed from 2/3 places in the codebase.

[-] BruisedMoose@piefed.social 4 points 3 months ago

Yeah. The list should be in the site config. Go ahead and include those as defaults to block, but allow sites to override that.

OP, are you saying that the federation is blocked on the OUTGOING side? Because then that just seems bass ackwards.

[-] qaz@lemmy.world 2 points 3 months ago

No, it's incoming. When you first set up an instance you have to kickstart the federation process by adding communities to federate. The linked code excludes those specified communities from that. Once federated, they won't be blocked AFAIK.

[-] OpenStars@piefed.social 16 points 3 months ago* (last edited 3 months ago)

If you dont like it, fork it. Stop bothering us about it

-devs of PieFed

Oh wait no, that's the devs of Lemmy when asked the same request. (edit: 'asking' to 'asked')

Hopefully Rimu will be more accommodating when you ask him? (codeberg issue creation prefered)

It might be time to move this away from a hard-coded list now, if the expectations that someone installing an instance is going to read through the code is lower now than previously.

[-] Unleaded8163@fedia.io 13 points 3 months ago

Never meet your heroes

Never read the code of a project you respect

That is some nasty code.

[-] cronenthal@discuss.tchncs.de 9 points 3 months ago

Dear God, that code! Why is it all in one file? The more I read it the worse it becomes!

[-] boogiebored@lemmy.world 6 points 3 months ago

Holy crud, you were not kidding. I got through a bit and was just like, “nah I ain’t reading this shit”.

Very glad I never got deeper into PieFed. Great post.

[-] Endymion_Mallorn@kbin.melroy.org 8 points 3 months ago

Well, like the Lemmy devs, I guess the PieFed devs have decided to plant a flag instead of making a neutral platform for federated communication.

[-] VeganCheesecake@lemmy.blahaj.zone 8 points 3 months ago

The Lemmy devs don't seem to hardcode those opinions into Lemmys source code.

[-] rainwall@piefed.social 8 points 3 months ago

They had one for a while, but removed it on pushback.

[-] harcesz@szmer.info 1 points 3 months ago

One could argue the design choices themselves are hardcoded opinions, as it would be possible to imagine for example a more democratic way to moderate.

[-] HeyThisIsntTheYMCA@lemmy.world 2 points 3 months ago

neutrality is one of those subjective things

Side note: lmfao wtf is this Mickey Mouse block-quote-but-not-really bullshit?

[-] mushroomman_toad@lemmy.dbzer0.com 1 points 3 months ago

AI code or someone who doesn't understand python well

[-] Stefan_S_from_H@piefed.zip 3 points 3 months ago

goddamn, asshole, peepee, and poopoo are missing.

[-] mushroomman_toad@lemmy.dbzer0.com 3 points 3 months ago* (last edited 3 months ago)
[-] JackbyDev@programming.dev 2 points 3 months ago

If they have DB access they already can.

[-] Hond@piefed.social 2 points 3 months ago

Huh, so thats why i havent seen greentexts in quite some time.

load more comments
view more: next ›
this post was submitted on 01 Jan 2026
83 points (97.7% liked)

memes

21006 readers
196 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS