Skip to content

fix: reported tag remained visible after reported response/comment was deleted#17

Merged
Alam-2U merged 1 commit intorelease-ulmofrom
ealam/COSMO2-817
Feb 16, 2026
Merged

fix: reported tag remained visible after reported response/comment was deleted#17
Alam-2U merged 1 commit intorelease-ulmofrom
ealam/COSMO2-817

Conversation

@Alam-2U
Copy link
Collaborator

@Alam-2U Alam-2U commented Feb 16, 2026

Description

When a comment or response is reported, a "Reported" badge appears in the post sidebar to alert moderators. However, if the reported content is deleted, the badge remains visible even though there's nothing left to review, causing confusion.

The badge should only appear when there's at least one reported comment that hasn't been deleted. Once all reported comments are removed, the badge should disappear automatically.

Changes made

Updated the backend to exclude deleted comments when counting reported content. Previously, deleted comments were still counted, causing the "Reported" badge to persist unnecessarily. Now the badge accurately reflects only active reported content requiring moderation.

Ticket

COSMO2-817

Copy link
Collaborator

@jcapphelix jcapphelix left a comment

Choose a reason for hiding this comment

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

LGTM

@Alam-2U Alam-2U merged commit 02de16c into release-ulmo Feb 16, 2026
13 checks passed
@Alam-2U Alam-2U deleted the ealam/COSMO2-817 branch February 16, 2026 09:42
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.

2 participants