Skip to content

fix(web): remove reply notifications when their parent comment is deleted - #3612

Open
yashranaway wants to merge 2 commits into
CapSoftware:mainfrom
yashranaway:fix/reply-notification-cleanup
Open

yashranaway wants to merge 2 commits into
CapSoftware:mainfrom
yashranaway:fix/reply-notification-cleanup

Conversation

@yashranaway

@yashranaway yashranaway commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

deleting a top level comment never cleaned up the "x replied to your comment" notifications on it, so people kept seeing them and they kept counting toward the unread badge. the cleanup looked for the parent comment id nested under the comment in the notification data, but replies store it at the top level, so the query never matched anything. the mobile delete endpoint copied the same query.

now both look in the right place. one line each, checked against a real mysql row. notifications that already went stale aren't cleaned up.

stacked on #3325, which touches the same cleanup and whose test asserted the old path. the first commit here is #3325's, so review just the second.

RetriggerView in GreptileConfidence Score: 5/5

The reviewed commit appears safe to merge.

Summary

Corrects reply-notification cleanup in web and mobile comment deletion.

  • Deleting a comment now clears its related notifications.

Acknowledged limitation: yashranaway explicitly states that notifications already left stale are not cleaned up.

Reviews (1) · Last reviewed commit: "fix(web): remove reply notifications whe..." · Reviewed by Greptile

@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 1, 2026 07:31 Inactive
@vercel

vercel Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Nov 1, 2026 7:31am UTC

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 4fe2d01b Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant