• degenerate_neutron_matter@fedia.io
    link
    fedilink
    arrow-up
    99
    ·
    4 hours 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.

  • NotSteve_@piefed.ca
    link
    fedilink
    English
    arrow-up
    31
    ·
    edit-2
    4 hours 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

      • NotSteve_@piefed.ca
        link
        fedilink
        English
        arrow-up
        9
        ·
        2 hours 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)

  • ben@lemmy.zip
    link
    fedilink
    English
    arrow-up
    35
    ·
    5 hours 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.worldOP
      link
      fedilink
      English
      arrow-up
      41
      ·
      edit-2
      5 hours 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

    • BruisedMoose@piefed.social
      link
      fedilink
      English
      arrow-up
      7
      ·
      5 hours 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.worldOP
        link
        fedilink
        English
        arrow-up
        4
        ·
        5 hours 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.

  • Endymion_Mallorn@kbin.melroy.org
    link
    fedilink
    arrow-up
    12
    ·
    4 hours 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.

    • boogiebored@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      4 hours 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.

    • qaz@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      5 hours ago

      Yes, it starts with swear words, the names of some communities are also thrown in.