Skip to content

fix(notifications): dismiss comment mention notifications when viewed…#59811

Open
miaulalala wants to merge 5 commits intomasterfrom
fix/2531/comments-not-marked-read
Open

fix(notifications): dismiss comment mention notifications when viewed…#59811
miaulalala wants to merge 5 commits intomasterfrom
fix/2531/comments-not-marked-read

Conversation

@miaulalala
Copy link
Copy Markdown
Contributor

… in activity sidebar

Summary

Add a DELETE /notifications/dismiss/{id} endpoint to the comments NotificationsController that marks the comments/comment/mention notification as processed without redirecting.

When comments are loaded in the activity sidebar, the frontend calls this endpoint for any comment that mentions the current user, so the notification is cleared from the bell without requiring the user to navigate via the notification link.

Fixes: nextcloud/activity#2531

AI-Assisted-By: Claude Sonnet 4.6 noreply@anthropic.com

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

come-nc and others added 4 commits April 21, 2026 09:34
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…ndling

fix: Reduce the mixups between apptokens and session ids
@miaulalala
Copy link
Copy Markdown
Contributor Author

/compile amend

… in activity sidebar

Add a `DELETE /notifications/dismiss/{id}` endpoint to the comments
NotificationsController that marks the `comments/comment/mention`
notification as processed without redirecting.

When comments are loaded in the activity sidebar, the frontend calls
this endpoint for any comment that mentions the current user, so the
notification is cleared from the bell without requiring the user to
navigate via the notification link.

Fixes: nextcloud/activity#2531

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comments don't get marked as read

3 participants