Hello! TL;DR for the unnecessary long background info I just typed up then deleted:

  • I very recently moved to Lemm.ee after being addicted to Reddit and its karma system for the last decade. 2 days after I started posting, the notice that .ee would be shutting down was sent out.
  • Lemm.ee (and I believe, Lemmy itself) allows the hiding of the post/comment score
  • Piefed doesn’t appear to offer that.
  • I am interested in self-hosting Piefed, hence my interest in this instead of simply moving my account to a Lemmy instance

I would still like to be able to upvote/downvote posts and comments to do my part in letting the sorting algorithm do its thing, but being able to hide the number on all posts/comments (especially my own) would be very helpful for people like me who are easily addicted to number-go-up mechanics (don’t talk to me about the hours i have in Balatro)

In my effort to not just blindly suggest things without at least doing a bit of research myself, I’m poking around in the codebase. I definitely don’t know enough to make any meaningful contributions, though.

I do see a “Show_scores” variable in app/api/alpha/views.py that’s just set to a static True. It’s surrounded by a bunch of other variables that are presented as options in the user settings page like the default post sort and home filter. I’ve also found some of the logic for the various sorting and hiding methods that use the score, and the logic for how to add/remove score from a post object. I also spied the Score: {{comment.up_votes - comment.down_votes}} that defines the score displayed in the post templates (but they don’t seem to have any logic related to the show_scores option). I sort of understand the HTML and the Python, but the background database stuff and connecting the two is where I’m lost, so I don’t have any useful suggestions beyond my naive gut reaction to try and replace the “comment.up_votes - comment.down_votes” or any instance of either alone to an empty string at page-load if the show_scores variable for the logged-in user is false (having no idea how to actually implement such a thing more elegantly than just adding more if statements to the HTML templates)

It looks like it was/is a planned feature, but wanted to let you know that there are people that would use it, if there was ever a question if it was a desired feature.

Thanks for reading!

    • Bags@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 day ago

      Amazing! Thank you! Definitely works.

      Though, will it eventually become a checkbox for the specific hide score feature? Or could there be some kind of documentation for the other portions of the interface that might be able to be modified with this? An open-ended text box to put some code seems like a good way to confuse people who don’t know the underlying code. It kinda feels like the old days of hunting for cheat codes in game magazines.

      Interestingly, the score is still visible in the page inspector, but I’m not THAT addicted to post score, so it’s not a problem lol. (I went to check to see what the page code looked like to try and understand what exactly was happening)