# T6: Mention notifications (@username) **Status**: resolved **Priority**: low **Source**: meta `b82332ce-b4cb-11e7-b510-040140774501` **Filed**: 2026-02-01 ## Problem Users want to @mention other Remarkbox users in comments and have those users receive notifications. Currently only reply notifications exist (notify when someone replies to your comment). ## Proposed Implementation 1. Parse comment body for `@username` patterns on save 2. Look up mentioned users and create notifications for them 3. Render @mentions as links to the user's profile ## Files - `remarkbox/lib/mentions.py` — new module: parse @mentions, resolve users, replace with links - `remarkbox/lib/render.py` — integrate mention resolution into markdown_to_html pipeline - `remarkbox/models/node.py` — pass dbsession through set_data() for mention resolution - `remarkbox/lib/notify.py` — add get_mentioned_user_watchers() for mention notifications - `remarkbox/views/reply_node.py` — pass dbsession to set_data() - `remarkbox/views/new_thread.py` — pass dbsession to set_data() - `remarkbox/api/views.py` — pass dbsession to set_data() in API endpoints - `remarkbox/static/css/common.css` — CSS for .mention class ## Acceptance Criteria - [x] @username in a comment triggers a notification to that user - [x] Mentioned usernames are rendered as links - [x] Non-existent usernames are left as plain text