Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

The Fedi Forum

  1. Home
  2. Fediverse
  3. Fun fact: you can't upload this image on piefed.social

Fun fact: you can't upload this image on piefed.social

Scheduled Pinned Locked Moved Fediverse
fediverse
178 Posts 57 Posters 8 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R raspberriesareyummy@lemmy.world

    if anything, the code examples confirmed my belief that most python coders are fucking morons.

    T This user is from outside of this forum
    T This user is from outside of this forum
    tyranttw@lemmy.ml
    wrote last edited by
    #121

    Listen, it could be worse. They could be doing it all with regex

    R 1 Reply Last reply
    3
    • T tyranttw@lemmy.ml

      Listen, it could be worse. They could be doing it all with regex

      R This user is from outside of this forum
      R This user is from outside of this forum
      raspberriesareyummy@lemmy.world
      wrote last edited by
      #122

      Would that really be worse? Considering they are using an fucking image-to-text-converter... I don't think it would.
      Also, regular expressions rule 🙂 just not in this context.

      1 Reply Last reply
      5
      • samus12345@sh.itjust.worksS samus12345@sh.itjust.works

        Yeah, it speaks to the developer having a philosophy that is really at odds with the concept of open communication. I'm no free speech absolutist, but some of these restrictions are just ridiculous.

        Blaze (he/him)B This user is from outside of this forum
        Blaze (he/him)B This user is from outside of this forum
        Blaze (he/him)
        wrote last edited by
        #123

        the filter this post is about and most of the others mentioned in this thread are off by default.

        https://codeberg.org/rimu/pyfedi/src/commit/b168820a089ff6e835059f0d806f81b612987a79/app/models.py#L3513

        1 Reply Last reply
        4
        • Eugene V. Debs' GhostE Eugene V. Debs' Ghost

          It's just Lemmy but more reddit. The people who left Reddit for Lemmy into PieFed just want to be the admins of their Reddit, and all it entails.

          Blaze (he/him)B This user is from outside of this forum
          Blaze (he/him)B This user is from outside of this forum
          Blaze (he/him)
          wrote last edited by
          #124

          Is it the case for https://anarchist.nexus/ as well ?

          Eugene V. Debs' GhostE 1 Reply Last reply
          2
          • Eugene V. Debs' GhostE Eugene V. Debs' Ghost

            It's just Lemmy but more reddit. The people who left Reddit for Lemmy into PieFed just want to be the admins of their Reddit, and all it entails.

            S This user is from outside of this forum
            S This user is from outside of this forum
            Skavau
            wrote last edited by
            #125

            I don't get this logic. What in the tools reference here are 'reddit' specifically? I assume you just mean the reputation function?

            Eugene V. Debs' GhostE 1 Reply Last reply
            1
            • sortekanin@feddit.dkS sortekanin@feddit.dk

              ... Wow. I mean I already knew there was some questionable stuff with PieFed but this is honestly next level.

              S This user is from outside of this forum
              S This user is from outside of this forum
              Skavau
              wrote last edited by
              #126

              The blocking tool specifically? Most block functions on sites operate like Piefeds.

              sortekanin@feddit.dkS 1 Reply Last reply
              2
              • S Skavau

                The blocking tool specifically? Most block functions on sites operate like Piefeds.

                sortekanin@feddit.dkS This user is from outside of this forum
                sortekanin@feddit.dkS This user is from outside of this forum
                sortekanin@feddit.dk
                wrote last edited by
                #127

                No just the whole thing. It seems sort of extreme to do all this stuff in the code. This is not something the software should have inbuilt if you ask me.

                S 1 Reply Last reply
                11
                • sortekanin@feddit.dkS sortekanin@feddit.dk

                  No just the whole thing. It seems sort of extreme to do all this stuff in the code. This is not something the software should have inbuilt if you ask me.

                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  Skavau
                  wrote last edited by
                  #128

                  Why? Much of it is orientated around giving admins tools to deal with trolls/spammers/AI posters. An alert system.

                  sortekanin@feddit.dkS hiddenlayer555@lemmy.mlH 2 Replies Last reply
                  1
                  • S Skavau

                    Why? Much of it is orientated around giving admins tools to deal with trolls/spammers/AI posters. An alert system.

                    sortekanin@feddit.dkS This user is from outside of this forum
                    sortekanin@feddit.dkS This user is from outside of this forum
                    sortekanin@feddit.dk
                    wrote last edited by
                    #129

                    I feel like you're moving from moderation to sort of oppressive or authoritarian territory once you're literally building a social credit system into your software. If you want that, sure use PieFed. I don't want that, so I won't.

                    S L 2 Replies Last reply
                    9
                    • sortekanin@feddit.dkS sortekanin@feddit.dk

                      I feel like you're moving from moderation to sort of oppressive or authoritarian territory once you're literally building a social credit system into your software. If you want that, sure use PieFed. I don't want that, so I won't.

                      S This user is from outside of this forum
                      S This user is from outside of this forum
                      Skavau
                      wrote last edited by
                      #130

                      So the reputation system. I'll see if Rimu can be talked into making it instance level.

                      But its function is primarily to just catch out trolls and spammers. Make them more visible to admins.

                      Z 1 Reply Last reply
                      3
                      • RedWizard [he/him]A RedWizard [he/him]

                        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:

                        • Cowbees comment on lemmy.ml: https://lemmy.ml/post/41587312/23288779
                        • Non-existent on piefed.social: https://piefed.social/comment/9647830

                        (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!

                        • PieFed defederates from Hexbear.net, Lemmygrad.ml, and Lemmy.ml out of the box.
                        • The "rational discourse" sidebar that you see on the main instance is hard coded into the system.
                        • Moderators of a community can kick you from a community, which unsubscribes you from it, and does not notify you. This has been removed actually, the API endpoint is still there.
                        • I was going to say that Admins had the ability to add a weight to votes coming from other instances, but the videos that showed this are now gone, and as of v1.5.0 they have removed the instance vote weight feature, claiming it was "unused".

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

                        R This user is from outside of this forum
                        R This user is from outside of this forum
                        reksas@sopuli.xyz
                        wrote last edited by
                        #131

                        Trying to do something about bots is okay.
                        "attitude" is iffy but still kind of understandable, though already a step in worrying direction. But surely its implemented in transparent and fair way.. right?
                        Actively lying to users so they cant use images that MIGHT have content coder doesnt like? What else are they lying about? What else WILL they lie about? And that it reduces your reputation while not even informing you about it?

                        It doesnt matter if your ideals are noble and intentions good, if you dont act with integrity you are no better than the ones who are making world shitty place.

                        1 Reply Last reply
                        8
                        • Q QuizzaciousOtter

                          Wow, thanks for posting this. I actually considered switching to PieFed because people say a lot of good things about it but now I know I won't. I can't treat codebase like this seriously.

                          R This user is from outside of this forum
                          R This user is from outside of this forum
                          reksas@sopuli.xyz
                          wrote last edited by
                          #132

                          i already had made another account there. Now i deleted it. The ui was already kind of dumb there, this was the last straw. Or last haybale rather.

                          1 Reply Last reply
                          6
                          • samus12345@sh.itjust.worksS samus12345@sh.itjust.works

                            How much would Piefed hate this image?

                            R This user is from outside of this forum
                            R This user is from outside of this forum
                            reksas@sopuli.xyz
                            wrote last edited by
                            #133

                            should also make it a gif

                            1 Reply Last reply
                            10
                            • L lambalicious@lemmy.sdf.org

                              Mámate esta con tu inglés exclusivo.

                              S This user is from outside of this forum
                              S This user is from outside of this forum
                              [object Object]
                              wrote last edited by
                              #134

                              Just so you know, you should look into checking yourself for autism. I'm saying that as someone who has more than a few signs myself.

                              1 Reply Last reply
                              0
                              • S Skavau

                                So the reputation system. I'll see if Rimu can be talked into making it instance level.

                                But its function is primarily to just catch out trolls and spammers. Make them more visible to admins.

                                Z This user is from outside of this forum
                                Z This user is from outside of this forum
                                zombifrancis@sh.itjust.works
                                wrote last edited by
                                #135

                                It seems the chief complaint people have about Lemmy going to Piefed are how admins operate their instances. Not sure any of this will change that, or even help.

                                Not to mention all these are just a game for trolls and spammers to tool around with. Like: Up/downvotes were built before vote manipulation became a problem.

                                This stuff is the difference between building a bridge and governing who crosses it.

                                S 1 Reply Last reply
                                6
                                • B bb84@mander.xyz

                                  Usually 0/0=NaN and NaN compared with a number would be false.

                                  Maybe the (up-down)/(up+down) is just what AmazingWizard summarized from the code. But from what we have seen of the quality of that codebase I won't be surprised if it's literally this expression, division by zero and all. Lol

                                  ∞🏳️‍⚧️Edie [it/it/its/its/itself, she/her/her/hers/herself, fae/faer/faer/faers/faerself, love/love/loves/loves/loveself, des/pair, null/void, none/use name]E This user is from outside of this forum
                                  ∞🏳️‍⚧️Edie [it/it/its/its/itself, she/her/her/hers/herself, fae/faer/faer/faers/faerself, love/love/loves/loves/loveself, des/pair, null/void, none/use name]E This user is from outside of this forum
                                  ∞🏳️‍⚧️Edie [it/it/its/its/itself, she/her/her/hers/herself, fae/faer/faer/faers/faerself, love/love/loves/loves/loveself, des/pair, null/void, none/use name]
                                  wrote last edited by edie@lemmy.ml
                                  #136

                                  The (upvotes cast - downvotes cast) / (upvotes + downvotes) is what the code itself says

                                  Here's recalculate_attitude, line 1268 checks that they have at least made 10 votes.

                                  1 Reply Last reply
                                  2
                                  • Z zombifrancis@sh.itjust.works

                                    It seems the chief complaint people have about Lemmy going to Piefed are how admins operate their instances. Not sure any of this will change that, or even help.

                                    Not to mention all these are just a game for trolls and spammers to tool around with. Like: Up/downvotes were built before vote manipulation became a problem.

                                    This stuff is the difference between building a bridge and governing who crosses it.

                                    S This user is from outside of this forum
                                    S This user is from outside of this forum
                                    Skavau
                                    wrote last edited by
                                    #137

                                    Its not vote manipulation as such here. Its much simpler than that. Lemmy has a spam problem. People coming in to just make shill communities selling a service or product or spamming advert posts across communities.

                                    They usually get downvoted, but I can use Piefeds admin tools to filter for downvoted posts by new accounts. This usually catches most spammers like that. I can then ban them from piefed.social and pass that on to Lemmy admins.

                                    A lot of Day 1 trolls are caught like this too.

                                    Z 1 Reply Last reply
                                    4
                                    • irelephant [he/him]I irelephant [he/him]

                                      Off the top of my head,

                                      Since votes on Lemmy aren't private, anyone can view them. Piefed added anonymized votes (iirc, by sending them from a shadow user with a username that was a hash of the actual voters username), this raised concerns, as vote spam could be harder to spot/stop, so it was removed.

                                      Z This user is from outside of this forum
                                      Z This user is from outside of this forum
                                      zombifrancis@sh.itjust.works
                                      wrote last edited by
                                      #138

                                      That got built and implemented before that problem was realized and removed? Damn.

                                      Even so, if the system is tracking votes as reputation, how were the anonymous votes actually tracked? That hash either hid the user or it didn't.

                                      1 Reply Last reply
                                      3
                                      • S Skavau

                                        Its not vote manipulation as such here. Its much simpler than that. Lemmy has a spam problem. People coming in to just make shill communities selling a service or product or spamming advert posts across communities.

                                        They usually get downvoted, but I can use Piefeds admin tools to filter for downvoted posts by new accounts. This usually catches most spammers like that. I can then ban them from piefed.social and pass that on to Lemmy admins.

                                        A lot of Day 1 trolls are caught like this too.

                                        Z This user is from outside of this forum
                                        Z This user is from outside of this forum
                                        zombifrancis@sh.itjust.works
                                        wrote last edited by
                                        #139

                                        Sounds like a flood control for community creation would be appropriate.

                                        It used to be in the early days instances would vet users at signup. Is there no mechanism for an instance admin to do the same for the creation of a community? They just can't be vetted before creation?

                                        S 1 Reply Last reply
                                        5
                                        • Z zombifrancis@sh.itjust.works

                                          Sounds like a flood control for community creation would be appropriate.

                                          It used to be in the early days instances would vet users at signup. Is there no mechanism for an instance admin to do the same for the creation of a community? They just can't be vetted before creation?

                                          S This user is from outside of this forum
                                          S This user is from outside of this forum
                                          Skavau
                                          wrote last edited by
                                          #140

                                          Piefed already disables community creation for out of the box accounts for a few days at least. Lemmy doesn't. That's the problem.

                                          Also many of these spammers just spam on other communities rather than doing it on their own.

                                          1 Reply Last reply
                                          3
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 8
                                          • 9
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World