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.

  • apotheotic (she/her)@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 months ago

    Anyone who wants the whole story, since there’s misinfo/cherry-picked info flying both ways (god I sound like a fucking centrist please believe me I hate elon musk and everything he stands for and cant wait for the collapse of the imperial powers)

    The code defines a default list of “bad words” which includes the names of some communities they consider low effort

    seven_things_plus = [
                'shit', 'piss', 'fuck',
                'cunt', 'cocksucker', 'motherfucker', 'tits',
                'memes', 'piracy', 'greentext', 'usauthoritarianism',
                'enoughmuskspam', 'political_weirdos', '4chan'
            ]
    

    And filters these bad words/low effort communities out by default

    # sort out the 'seven things you can't say on tv' names (cursewords), plus some
                # "low effort" communities
                if any(badword in community['name'].lower() for badword in seven_things_plus):
                    bad_words_count += 1
                    continue
    
                else:
                    candidate_communities.append(community)
    

    Decide for yourself if you think that community qualifies as low effort, but it isn’t a “hardcode” in the way most people think of it. Its just as much of a hardcode as setting default values for any other variable in your function definition.

    • Shatur@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      but it isn’t a “hardcode”

      But you showed a constant with the words. Even if you can disable this, I’d call it a “hardcoded list”.

    • BB84@mander.xyzOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      10 months ago

      Hey. I saw your comment but didn’t get to reply before you deleted it. I think you should restore it. Ignore the tankies bullying you.

      I fully stand by my wording that it is “hardcoded”, but it is good that you show the code, so people can judge for themselves.

      • apotheotic (she/her)@beehaw.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        10 months ago

        I appreciate the sentiment. I just don’t have the energy to deal with people being mean atm. And for what its worth, I don’t agree with my own take on the use of the word hardcoded anymore, I think you were justified to say it is hardcoded.