247
submitted 3 months ago by hamid@crazypeople.online to c/memes@lemmy.ml
top 50 comments
sorted by: hot top controversial new old
[-] AmazingWizard@lemmy.ml 99 points 3 months ago* (last edited 3 months ago)

There are all kinds of fun stuff in the Piefed code. Allow me to dredge up a comment I made recently:

@edie@lemmy.encryptionin.space was looking at PieFed code the other week, and I ended up taking a look at it too. Its great fun to sneak a peak at.

For example, you cannot cast a vote on PieFed if you've made 0 replies, 0 posts, AND your username is 8 characters long:

    def cannot_vote(self):
        if self.is_local():
            return False
        return self.post_count == 0 and self.post_reply_count == 0 and len(
            self.user_name) == 8  # most vote manipulation bots have 8 character user names and never post any content

If a reply is created, from anywhere, that only contains the word "this", the comment is dropped (CW: ableism in the function name):

def reply_is_stupid(body) -> bool:
    lower_body = body.lower().strip()
    if lower_body == 'this' or lower_body == 'this.' or lower_body == 'this!':
        return True
    return False

Every user (remote or local) has an "attitude" which is calculated as follows: (upvotes cast - downvotes cast) / (upvotes + downvotes). If your "attitude" is < 0.0 you can't downvote.

Every account has a Social Credit Score, aka your Reputation. If your account has less than 100 reputation and is newly created, you are not considered "trustworthy" and there are limitations placed on what your account can do. Your reputation is calculated as upvotes earned - downvotes earned aka Reddit Karma. If your reputation is at -10 you also cannot downvote, and you can't create new DMs. It also flags your account automatically if your reputation is to low:

PieFed boasts that it has "4chan image detection". Let's see how that works in practice:

            if site.enable_chan_image_filter:
                # Do not allow fascist meme content
                try:
                    if '.avif' in uploaded_file.filename:
                        import pillow_avif  # NOQA
                    image_text = pytesseract.image_to_string(Image.open(BytesIO(uploaded_file.read())).convert('L'))
                except FileNotFoundError:
                    image_text = ''
                except UnidentifiedImageError:
                    image_text = ''

                if 'Anonymous' in image_text and (
                        'No.' in image_text or ' N0' in image_text):  # chan posts usually contain the text 'Anonymous' and ' No.12345'
                    self.image_file.errors.append(
                        "This image is an invalid file type.")  # deliberately misleading error message
                    current_user.reputation -= 1
                    db.session.commit()
                    return False

Yup. If your image contains the word Anonymous, and contains the text No. or N0 it will reject the image with a fake error message. Not only does it give you a fake error, but it also will dock your Social Credit Score. Take note of the current_user.reputation -= 1

PieFed also boasts that it has AI generated text detection. Let's see how that also works in practice:

# LLM Detection
        if reply.body and '—' in reply.body and user.created_very_recently():
            # usage of em-dash is highly suspect.
            from app.utils import notify_admin
            # notify admin

This is the default detection, apparently you can use an API endpoint for that detection as well apparently, but it's not documented anywhere but within the code.

Do you want to leave a comment that is just a funny gif? No you don't. Not on PieFed, that will get your comment dropped and lower your Social Credit Score!

        if reply_is_just_link_to_gif_reaction(reply.body) and site.enable_gif_reply_rep_decrease:
            user.reputation -= 1
            raise PostReplyValidationError(_('Gif comment ignored'))

How does it know its just a gif though?

def reply_is_just_link_to_gif_reaction(body) -> bool:
    tmp_body = body.strip()
    if tmp_body.startswith('https://media.tenor.com/') or \
            tmp_body.startswith('https://media1.tenor.com/') or \
            tmp_body.startswith('https://media2.tenor.com/') or \
            tmp_body.startswith('https://media3.tenor.com/') or \
            tmp_body.startswith('https://i.giphy.com/') or \
            tmp_body.startswith('https://i.imgflip.com/') or \
            tmp_body.startswith('https://media1.giphy.com/') or \
            tmp_body.startswith('https://media2.giphy.com/') or \
            tmp_body.startswith('https://media3.giphy.com/') or \
            tmp_body.startswith('https://media4.giphy.com/'):
        return True
    else:
        return False

I'm not even sure someone would actually drop a link like this directly into a comment. It's not even taking into consideration whether those URLs are part of a markdown image tag.

As Edie mentioned, if someone has a user blocked, and that user replies to someone, their comment is dropped:

if parent_comment.author.has_blocked_user(user.id) or parent_comment.author.has_blocked_instance(user.instance_id):
    log_incoming_ap(id, APLOG_CREATE, APLOG_FAILURE, saved_json, 'Parent comment author blocked replier')
    return None

For Example:

(see Edies original comment here)

More from Edie:

Also add if the poster has blocked you! It is exactly as nonsense as you think.

Example:

I made a post in testing@piefed.social from my account testingpiefed@piefed.social, replied to it from my other testingpiefed@piefed.zip account. Since the .social account has blocked the .zip, it doesn't show up on .social, nor on e.g. piefed.europe.pub.

I then made a comment from my lemmy.ml account, and replied to it from my piefed.zip account, and neither .social, nor europe.pub can see my .zip reply, but can see my lemmy.ml comment!

[ Let me add more clarity here: what this feature does is two things. On a local instance, if you block someone who is on your instance, they cannot reply to you. However, this condition is not federated (yet, it would seem), and so, to get around this "issue", the system will drop comments from being stored in the PieFed database IF the blocked user is remote. This means you end up with "ghost comment chains" on remote instances. There is NEW code as of a few weeks ago, that will send an AUTOMATED mod action against blocked remote users to remove the comment. So long as the community is a local PieFed community, it will federate that mod action to the remote server, removing the comment automatically. For PieFed servers, eventually, they would rather federate the users block list (that's fair), but it would seem this code to send automated mod actions to remove comments due to user blocks is going to stay just for the Lemmy Piefed interaction. I don't really understand why the system simply doesn't prevent the rendering of the comment, instead of stopping it from being stored. It knows the user is blocked, it already checks it, it should then just stop rendering the chain of comments for the given user, prevent notifications from those users, etc. ]

But wait! There's More!

All this to say. Piefed is a silly place, and no one should bother using its software.

[-] LiveLM@lemmy.zip 35 points 3 months ago* (last edited 3 months ago)

Goddamn, I'm glad I didn't bother creating an account there when people were singing it's praises.

[-] kplaceholder@lemmy.ml 34 points 3 months ago

What the fuck? I already knew that Piefed defederates Hexbear and Lemmygrad by default, but other than that bruh moment I assumed it was a respectable Lemmy alternative. That's some incredibly cringe behavior right there.

load more comments (1 replies)
[-] pressanykeynow@lemmy.world 26 points 3 months ago

"attitude" which is calculated as follows: (upvotes cast - downvotes cast) / (upvotes + downvotes). If your "attitude" is < 0.0 you can't downvote.

The math here is hilarious.

[-] goferking0@lemmy.sdf.org 23 points 3 months ago

The gif parts are just so impressively poorly done. Both from even making it part of a persons reputation to how the check is done

load more comments (14 replies)
[-] hamid@crazypeople.online 53 points 3 months ago

To me the funniest thing about the people who need to thought police people and stand up and fight people on lemmy is that it is completely optional to see any of the content. There are robust features to block anything. If you don't like the memes I post please go to my profile and press the block button, problem solved. Commie memes make you mad? Block this community, there are plenty of other meme comms on lemmy you can look at with people like clown0002 posting. I don't want to see any furry stuff ever so I block that stuff and the entire pawb.social instance - poof - gone! I never seen it again. I also block all the buy euro shit, and sh.itjust.works. Problem solved for me. Why would you want to build image censoring into the platform itself lol. I actually have never even seen a 4chan post here because I don't see anything from the instance with that community on it.

[-] Edie@lemmy.ml 31 points 3 months ago* (last edited 3 months ago)

You don't even have to open up your profile, the three dots/hamburger menu also contains a block button.

Also true. I don't want to see 4chan, so I have some greentext community blocked.

load more comments (4 replies)
[-] JeanValjean@piefed.social 50 points 3 months ago

Yeah, I joined Piefed because I appreciated seeing the cross posts all on one page and the ability to tag users. As I notice more comments disappearing, I'm beginning to rethink my main instance.

[-] geneva_convenience@lemmy.ml 16 points 3 months ago

For all the gripes I have with Piefed their devs do have a much better take on how to deal with cross posts by merging them, and also their frontpage sorting algorithm is pretty neat. Wouldn't move there though since the devs don't feel very reliable.

load more comments (2 replies)
[-] Sanctus@anarchist.nexus 46 points 3 months ago

Seeing people say piefed is better than lemmy:

UiFmnIj38hjub2l.png

(Ignore my non-lemmy instance)

[-] Wren@lemmy.today 45 points 3 months ago

Finally. I tried piefed for all of a few days. It was some kinda highschool level passive aggressive hand-holding circlejerk. The software equivalent of some hot jackass in the lunchroom pointing at a group of kids, saying "We don't talk to them, and you won't either if you wanna hang with us."

load more comments (17 replies)
[-] PotatoesFall@discuss.tchncs.de 34 points 3 months ago* (last edited 3 months ago)

there's hardcoded censorship?

edit: No it's not it's optional

[-] geneva_convenience@lemmy.ml 45 points 3 months ago

Apparently Piefed OCR's every image for the text " Anonymous" and "no" (horrible code by the way since it doesn't look for it sequentially but just those two strings on the whole image) for 4Chan posts and then censor those with an error message and -1 the uploaders social credit score.

load more comments (4 replies)
[-] FrostyTrichs@crazypeople.online 41 points 3 months ago

This reply to another thread highlights some interesting things in the code:

https://lemmy.ml/comment/23619001

load more comments (1 replies)
[-] hamid@crazypeople.online 28 points 3 months ago* (last edited 3 months ago)

Ahahaha delicate Rimu didn't just ban me, he deleted my account on his server.

Good.

[-] goferking0@lemmy.sdf.org 19 points 3 months ago

Wild how unsurprising that is when the piefed pr person keeps saying how open they are to feedback no matter what rimu says or puts in the code

load more comments (1 replies)
load more comments (2 replies)
[-] Micromot@piefed.social 17 points 3 months ago

Can you show the hard-coded censorship?

[-] FrostyTrichs@crazypeople.online 46 points 3 months ago

This reply to another thread highlights some interesting things in the code:

https://lemmy.ml/comment/23619001

[-] iByteABit@lemmy.ml 43 points 3 months ago* (last edited 3 months ago)

really putting the 'fed' in 'piefed'

It's also very interesting how someone who seems to really dislike a country they don't live in having what they claim to be a social credit system, are the ones who actually implement the fucking thing in their own software

[-] eldavi@lemmy.ml 22 points 3 months ago

every accusation is an admission

[-] Cowbee@lemmy.ml 36 points 3 months ago

@AmazingWizard@lemmy.ml comrade, I think this post could use your recently linked comment as a top-level, just to help show people here what OP is talking about regarding PieFed hard-coded censorship.

load more comments (5 replies)
load more comments
view more: next ›
this post was submitted on 30 Jan 2026
247 points (100.0% liked)

Memes

55774 readers
757 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 7 years ago
MODERATORS