Skip to content
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

Do not decrement comment score twice when removing then deleting. #3196

Merged
merged 4 commits into from
Jul 3, 2023

Conversation

JPMoresmau
Copy link
Contributor

Fixes #3004

I'm not sure about the impact of recalculating the counts and scores on big instances, but fixing the calculation but not the existing counts feels like only half the fix.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for this one.

@dessalines dessalines enabled auto-merge (squash) July 3, 2023 15:57
@dessalines dessalines merged commit bbca6ef into LemmyNet:main Jul 3, 2023
@JPMoresmau JPMoresmau deleted the no_double_deletion branch July 3, 2023 18:25
@RustedSwitch
Copy link

Fixes #3004

I'm not sure about the impact of recalculating the counts and scores on big instances, but fixing the calculation but not the existing counts feels like only half the fix.

As of 0.18.1 (or whatever lemmy.world is on), I’ve noticed that if I delete my own comment, my comment score is thus reset to zero. I’m trying to determine if my issue has been reported already, and this issue is as close as I’ve found so far.

2 questions:

  • Which release will have this fix?
  • Is what I am experiencing covered by this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Users with deleted comments get a negative comment count
3 participants