# כשמשנים שם משתמש, הוא צריך לעדכן אזכורים בפוסטים של המשתמש עצמו

**URL:** <https://meta.discourse.org/t/when-changing-username-it-should-update-mentions-in-the-users-own-posts/252372>\
**Category:** Bug\
**Created:** [20 בינואר,‏ 2023,‏ 12:53am UTC](https://meta.discourse.org/t/when-changing-username-it-should-update-mentions-in-the-users-own-posts/252372 "2023-01-20T00:53:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![traceymoko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/traceymoko/32/483235_2.png) [@traceymoko](https://meta.discourse.org/u/traceymoko)\
**Post date:** [20 בינואר,‏ 2023,‏ 12:53am UTC](https://meta.discourse.org/t/when-changing-username-it-should-update-mentions-in-the-users-own-posts/252372/1 "2023-01-20T00:53:15Z")

</div>

## 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

1. Have a user make posts mentioning their own username
2. 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 @traceymoko if you have questions”)

You can see other examples here:

[https://forum.gethopscotch.com/t/tagging-yourself-it-does-not-update-what-the-goigly/65317](https://forum.gethopscotch.com/t/tagging-yourself-it-does-not-update-what-the-goigly/65317)

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.

---

_[View the full topic](https://meta.discourse.org/t/when-changing-username-it-should-update-mentions-in-the-users-own-posts/252372)._
