lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Users with deleted comments get a negative comment count

Open argv-minus-one opened this issue 1 year ago • 0 comments

  • [x] Did you check to see if this issue already exists? [Yes—apologies if I missed it!]
  • [x] Is this only a single bug? Do not put multiple bugs in one issue. [Yes, it's a single bug.]
  • [x] Is this a question or discussion? Don't use this, use https://lemmy.ml/c/lemmy_support . [No, it's a bug report.]
  • [x] Is this a UI / front end issue? Use the lemmy-ui repo. [Doesn't look like it.]

Issue Summary

I noticed that a user whose comments were deleted by a mod now has a negative comment count. Is a counter being decremented twice?

Steps to Reproduce

  1. Look at @Tretiak's user page.
  2. Observe that the comment count is negative.

Technical details

  • No log—this bug appears on lemmy.ml.
  • OS is whatever lemmy.ml runs on.
  • No errors in browser console.

argv-minus-one avatar Jun 10 '23 04:06 argv-minus-one