Skip to content

fix(web): scope notification read updates to their recipient - #2877

Merged
richiemcilroy merged 2 commits into
CapSoftware:mainfrom
yashranaway:fix/web-comment-notifications
Oct 22, 2026
Merged

richiemcilroy merged 2 commits into
CapSoftware:mainfrom
yashranaway:fix/web-comment-notifications

Conversation

@yashranaway

@yashranaway yashranaway commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

marking a single notification as read checked that you were signed in, but then updated whatever notification id you sent, so anyone could mark someone else's notification as read. marking all of them was already limited to your own.

now both cases go through one update that always filters on the signed-in recipient, so there's no extra lookup and no gap between checking and writing. the test checks the actual sql for your own id, someone else's id and the mark-all case.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

markAsRead now limits both individual and bulk updates to the signed-in recipient.

  • Notification updates now stay within the signed-in person's notifications.

No actionable issues found. Tests were inspected but not run.

Reviews (1) · Last reviewed commit: "fix(web): scope notification read update..." · Reviewed by Greptile

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 07:10 Inactive
@vercel

vercel Bot commented Oct 22, 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 Oct 22, 2026 12:12pm UTC

@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 12:12 Inactive
@richiemcilroy
richiemcilroy merged commit 61c667d into CapSoftware:main Oct 22, 2026
29 of 30 checks passed

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 6ca5c55e Deployed Oct 22, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants