this post was submitted on 09 Aug 2023
174 points (95.8% liked)

Fediverse

28387 readers
860 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 1 year ago
MODERATORS
 

By advantage I mean posts from those instances receiving more visibility than others on feeds that sort by score (active, hot, top).

There seems to be at least two ways in which posts from instances that don't allow downvotes receive an advantage:

  • They don't federate downvotes. That means other instances only count downvotes from their own users but not from the rest of the fediverse.
  • A downvote sometimes can be counted and federated as an upvote. This happens when you first upvote a post and then change it to a downvote.

Let's see an example. Suppose we are a user from instance A that allows downvotes and we want to vote a post on instance B that doesn't allow downvotes. Watch what happens on instance C that also allows downvotes.

  1. Before the vote this is what users from each instance see (upvote - downvote = total score)
    A: 10 - 0 = 10
    B: 10 - 0 = 10
    C: 10 - 0 = 10

  2. Now we upvote the post:
    A: 11 - 0 = 11
    B: 11 - 0 = 11
    C: 11 - 0 = 11

  3. We misclicked, we meant to downvote the post:
    A: 10 - 1 = 9
    B: 11 - 0 = 11
    C: 11 - 0 = 11

If the post was hosted on an instance that allowed downvotes users from instance C would see a total score of 9.

you are viewing a single comment's thread
view the rest of the comments
[–] Anafroj@sh.itjust.works 1 points 1 year ago (1 children)

You're welcome. I don't use mobile myself : do you use an app, or it's just about opening your Lemmy instance url in a browser? If it's the later, you can go in the settings and there is a "Show Scores" checkbox. Just uncheck it, hit the "save" button and you're done. :) This is also where you find the "Sort Type" select box which allows to define default sorting and put it to "New". It only works for posts on the homepage, though, you have to take the habit to manually click "new" after reading a post to sort its comments (I could have swear it was using the "Sort Type" option before, or maybe just remembering last sort, but it's not the case anymore).

[–] CloverSi@lemmy.comfysnug.space 1 points 1 year ago (1 children)

I use the mobile site, so this is perfect! I'd been through the settings but totally missed that checkbox. Thank you!

It's funny, I vaguely remember having comments sorted differently by default too, but I can't seem to find any actual record of it. Mandela effect? Anyway, I'm hoping the option will be added soon, since I can't get it to work quite right with a script:

window.addEventListener("load", function(event) { 
  	document.querySelector('[id$="-new"]').click();
})

This only seems to work when the page is refreshed for some reason. If you or anyone else happens to know a solution that'd be greatly appreciated, I don't know javascript well.

[–] Anafroj@sh.itjust.works 1 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks, that's a good idea.

The reason why it only works on page reload is because Lemmy is a SPA : it makes it look like you're browsing several pages, but it's actually always the same, and it uses javascript to change the url and load new content. So the "load" event, triggered when the current page is done loading, is only triggered once because the page is only changed once. If you wonder why : SPA became commonplace in the 2010s because javascript applications started to get way bigger than previously, and it was helping with page load speed. For a time… because when you make page load faster, people just make it load more things until it's slow again. :)

My first reaction was that additionally to binding to the load event, we probably just can bind to the popstate event, which happens when the url is programmatically changed. But my first tests were not successful in doing that. I'll have a quick look at the source code of Lemmy later today to see if I can solve this.

[–] CloverSi@lemmy.comfysnug.space 1 points 1 year ago (1 children)

Thank you for the explanation! That's wild, I've certainly visited SPA sites but I've never given much thought to what must be happening under the hood there. I guess it has its use cases but from a user's pov the quirks can be kinda annoying. Case in point, I see why load wouldn't do the trick - hope you can find why popstate wouldn't either (and thanks again)!

[–] Anafroj@sh.itjust.works 2 points 1 year ago

You're welcome. :) Oh yeah, you probably use a lot of them, they are everywhere, although it's not obvious to the user. One way to figure it out is to open the browser inspector (usually control + shift + i, same to close it) and look on the "network" tab, which lists all network requests made by the page, to see if this list gets emptied when you click a link (if it's a real new page, the list is emptied and new requests appear).

My apologies, I spent an hour on the popstate problem before losing interest and calling it a day. Lemmy uses the inferno frontend framework (a clone of react), which uses the inferno-router router to handle page changes, which uses the history lib to do it, which… uses pushState as I expected it would. And yet, binding on popstate won't work. 🤷 Maybe I'll have an other look at it one day if it bugs me enough. :)