# Update quotes and mentions when username is changed

**URL:** https://meta.discourse.org/t/update-quotes-and-mentions-when-username-is-changed/39836
**Category:** Feature
**Created:** [19 februari 2016 om 07:16 UTC](https://meta.discourse.org/t/update-quotes-and-mentions-when-username-is-changed/39836 "2016-02-19T07:16:30Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [6 juli 2017 om 18:17 UTC](https://meta.discourse.org/t/update-quotes-and-mentions-when-username-is-changed/39836/21 "2017-07-06T18:17:20Z")

</div>

> [@anon61128213](#):
>
> So I’d create a new user account, change ownership of all posts to the new user and change all references (which shouldn’t be a problem with the usernames paul(a)kreuzer, but if someone answered things like “Hey Paul, …” that would stay untouched)?
> 
> I’m not really sure what steps 2 and 4 do.

That cribsheet is detailed to the way our migration worked.

Just rename your account with the GUI. This changes ownership and rebakes all your posts.

So what is left over are posts in response to you. This means that any @mentions are a straight replacement "@paul " for "@paula " and rebake. The only thing you won’t be able to catch is “Hey Paul” or “As Paul wrote”, but these will be self evident from within the context of the posts.

---

<div class="post-metadata">

### Author: ![chrispanag](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrispanag/32/105853_2.png) [@chrispanag](https://meta.discourse.org/u/chrispanag)
#### Post date: [20 december 2020 om 23:26 UTC](https://meta.discourse.org/t/update-quotes-and-mentions-when-username-is-changed/39836/22 "2020-12-20T23:26:46Z")

</div>

I’m bumping this topic especially for this case:

> [@sam](#):
>
> I always wanted our users routes to be `/users/ID/etc` this would be a non issue

> [@sam](#):
>
> In practice renaming users is really super rare, but there is something to be said about the extra flexibility you get with ids, especially if we ever allow Chinese usernames etc.

Firstly, you now allow UTF-8 usernames… so… 😅

Also, this issue was discovered: [Unicode username with Σ as the final char leads to an error loading profile page](https://meta.discourse.org/t/unicode-username-with-as-the-final-char-leads-to-an-error-loading-profile-page/173182)

Long story short, there are inconsistencies between Javascript’s, Ruby’s and Postgresql’s handling of various UTF-8 characters. (eg: in uppercasing-lowercasing). I think the aforementioned issue could make UTF-8 characters unsafe in usernames if another routing method, involving the user id is not implemented.

So, it’s a chance to revisit this decision 🙂

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [19 februari 2021 om 03:02 UTC](https://meta.discourse.org/t/update-quotes-and-mentions-when-username-is-changed/39836/23 "2021-02-19T03:02:39Z")

</div>

Just adding a note here to say that when a username is changed, quotes and mentions are now automatically updated. Changing a username will not break quotes and mentions.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [19 februari 2021 om 03:02 UTC](https://meta.discourse.org/t/update-quotes-and-mentions-when-username-is-changed/39836/24 "2021-02-19T03:02:44Z")

</div>



[Previous page](https://meta.discourse.org/t/update-quotes-and-mentions-when-username-is-changed/39836.md?page=1)
