[openstreetmap/openstreetmap-website] Improve linkification scoping (PR #6612)

Pablo Brasero notifications at github.com
Thu Dec 18 14:41:01 UTC 2025


pablobm left a comment (openstreetmap/openstreetmap-website#6612)

@hlfan - I think we shouldn't try to fix https://github.com/openstreetmap/openstreetmap-website/pull/6616 (mentions with spaces) with a regexp or similar. I think we should implement a selector of the sort you see in GitHub or 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 would also fix the issue of users changing usernames and leaving old usernames behind in comments, sometimes maliciously.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6612#issuecomment-3670633084
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6612/c3670633084 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251218/c15b52bc/attachment.htm>


More information about the rails-dev mailing list