-
-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: person_view.counts.post_score and .comment_score don't match the total post/comment scores #3393
Comments
Can i pick this up? |
Oh yeah we forgot to remove those karma scores from the API. Also though I can think of a number of reasons why they would be off, because the triggers there are imperfect; people deleting comments, removing their accounts, etc. |
These fields are used for person sort, so the calculation should be fixed and also fields marked as |
Public karma counts and karma farming are one of the things we really don't want to replicate from reddit, there was a discussion about it for lemmy-ui, and it was decided to stop showing them because of how psychologically harmful it is. We should've removed these a long time ago from the API. As a substitute, you can show the post_count and comment_count instead of those scores. |
@dessalines I see, thanks for the reply! I'll remove from Voyager then. Perhaps in the future, user scores could be exposed in |
No probs. I could see that potentially having value for mods (IE to find troll accounts with negative total scores), but also it looks like |
See: LemmyNet/lemmy#3393 (comment) * Upgrade lemmy-js-client
These fields are now removed from the api. |
Requirements
Summary
When doing an a REST call to /api/v3/user?username=someuser, I get something like this:
I checked these value against the total score of all my posts and comments, and while the count is correct, the score is not.
The post score is off by ~20%, but the real comment score is more than 20x of what this endpoint reports.
Steps to Reproduce
Technical Details
I got the scores of all posts/comments using the same endpoint and the pagination to fetch all comments.
Here's a Python (3.6+) snippet to demonstrate the issue:
Version
0.17.4
Lemmy Instance URL
https://feddit.de
The text was updated successfully, but these errors were encountered: