Skip to content

comment_count & discussion_count include hidden posts #2240

@iPurpl3x

Description

@iPurpl3x

Bug Report

Current Behavior
When a user has some posts or discussions that where hidden, the number of posts & discussions shown on his profile still includes the ones that where hidden.

Steps to Reproduce (as Admin)

  1. Go to "All Discussions"
  2. Click on "Start a discussion"
  3. Fill in all needed content & post the discussion
  4. Add a comment to the discussion
  5. Go to Profile (using the Session Dropdown menu)
  6. See number of Posts 2, Discussions 1
  7. (so far all good)
  8. Go the just created discussion
  9. Hide the comment that was just added using the dotted menu
  10. Now hide the discussion
  11. Go to Profile (using the Session Dropdown menu)
  12. See number of Posts 2, Discussions 1

Expected Behavior
At step (12.) there should be Posts 0, Discussions 0

Environment


This issue was originally detected by @clarkwinkelmann and mentioned in #2227

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions