Update quotes and mentions when username is changed

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.

2 Likes

I’m bumping this topic especially for this case:

Firstly, you now allow UTF-8 usernames… so… :sweat_smile:

Also, this issue was discovered: Unicode username with Σ as the final char leads to an error loading profile page

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 :slight_smile:

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.

8 Likes