Since the update to v0.18.1-rc.10 (UI: v0.18.1-rc.11) my score got almost cut in half (from ~700 to 475). It seems to me like it either isn't counting comment or post score anymore?
The data structure didn't change, so the script should still count posts and comments as before. My instance is on UI: 0.18.1-rc.10
BE: 0.18.1-rc.9, so one version behind, and my score is still as before.
Maybe they rolled back some part of the DB or maybe they fixed the score syncing? I don't know.
Thanks for looking into it. I thought of looking into the data that gets returned by the API directly but now I'm even more confused 😅
According to this I should have a score of 230? But my current score is 661. The results of the different pages (the page parameter in the API call) of my API results are only different in the comments that are returned.
The person_view post_score/comment_score is buggy. I have no idea why, but it's wildly different from the sum of all post/comment scores. Here's a bug report for that: https://github.com/LemmyNet/lemmy/issues/3393
The person_view seems to be independent of the pages. So my script iterates through all the pages, sums up the scores and returns that.
Apparently, any updates are only sent once and not retried. If the target instance isn't reachable when the update was sent (e.g. down for maintenance or overloaded), the update gets lost. This means, if you view the same post on multiple instances, they might have different scores, comments might be completely missing and edits/deletes might not have happened on the other instance.
No problem! Yeah, sadly Lemmy is still rather buggy when it comes to anything more complicated. I guess, until 3 weeks ago, the syncing wasn't much of an issue, but now that many instances are operating at or above capacity, everything's become much more complicated. And in the end, there are only two full-time devs on Lemmy.