Description
Context
When you change the username of a user (e.g. userA to userB), it updates all the @mentions of their username to avoid broken mentions.
@userA → @userB
Problem
However, it doesn’t seem to update the mentions in the user’s own posts. If userA has a post containing @userA, it doesn’t change that to @userB when their username is changed.
It does update the mentions correctly in other users’ posts.
This also applies when they have been anonymised — the @mentions in their own posts display their original username, while mentions in others’ posts have the new anonymised username.
Steps to Reproduce
- Have a user make posts mentioning their own username
- Change their username or anonymise the user
Expected
@mentions of their username are updated in their own posts, to reflect the new username
Actual
@mentions of their username are not updated in their own posts, and stay as the old username
Extra comments
It’s relatively common enough for users in our forum to refer to themselves in third person (e.g. “you can tag @bloomexperiment if you have questions”)
You can see other examples here:
I’m not sure if the @mentions are registered only when other people make the mentions, but I suspect that might be the case. Feel free to set the category depending on whether this behaviour is intended or not — either bug or feature request.