[openstreetmap/openstreetmap-website] Implement a reliable system to @-mention users in comments (Issue #6635)
Pablo Brasero
notifications at github.com
Fri Dec 19 17:27:42 UTC 2025
pablobm created an issue (openstreetmap/openstreetmap-website#6635)
### Problem
(Taken from https://github.com/openstreetmap/openstreetmap-website/pull/6612#issuecomment-3670633084)
Currently, users can mention other users by username using an "@-mention" in comments, etc. This creates a link to the mentioned user, and potentially sends a notification message (not sure this actually happens currently, but it's planned). When this happens, the username is stored as part of the comment text as entered, verbatim.
The problem is that users can change username at any time, making pre-existing @-mentions to them misleading. These mentions are left linking to non-existent users, or even to the wrong user if in the future someone else renames to a vacated username. In addition, we are aware that this has been used maliciously in the past.
### Description
Implement a selector of the sort you see in other apps (eg: GitHub, Slack), where you get a dropdown the moment you enter an "@" character, and then this gets stored as `@[user_id:$USER_ID]` (or something to that effect) that is interpreted and replaced as appropriate when renderding.
This implementation would also allow referring to users with spaces in their names, closing https://github.com/openstreetmap/openstreetmap-website/issues/6614
### Screenshots
_No response_
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6635
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6635 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251219/62781ac8/attachment-0001.htm>
More information about the rails-dev
mailing list