Flagged comments still readable in user's profile

Priority/Severity: Medium - While this bug doesn’t break functionality, it contradicts the purpose of flagging, potentially allowing inappropriate content to remain accessible.

Platform: Tested on a desktop, OS: Windows 10, Browser: Google Chrome.

Description: In Discourse, when a user’s comment is flagged, it gets removed from the regular topic view, indicating that the flagging function is working as expected. However, by navigating to the offending user’s profile and checking their ‘Recent Replies’, the flagged comment remains visible despite the flag. This behavior contradicts the intended purpose of flagging, as it should make a discourse safer from rude and obscene comments.

Expected Result: Flagged comments should be hidden from all user views, including the ‘Recent Replies’ section in the user profile, except for admin or moderator views.

Actual Result: Flagged comments are hidden from the regular topic view, but still visible under ‘Recent Replies’ on the user’s profile page.

Reproducible Steps:

  1. Login as Test User 1 and create a post or comment.
  2. Logout from Test User 1 and login as Test User 2.
  3. Navigate to the post created by Test User 1 and flag it.
  4. Confirm that the post is no longer visible in the topic view (you can check this by logging in as a third Test User 3).
  5. Still logged in as Test User 3, navigate to Test User 1’s profile.
  6. Click on ‘Activity’, then on ‘Replies’ from the dropdown.
  7. Check for the flagged post in this section.
5 Likes