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 个赞

我特别把这个话题顶上来,尤其是针对这个情况:

首先,你们现在已经支持 UTF-8 用户名了……所以……:sweat_smile:

此外,还发现了这样一个问题:Unicode username with Σ as the final char leads to an error loading profile page

长话短说,JavaScript、Ruby 和 PostgreSQL 在处理各种 UTF-8 字符时存在不一致(例如在大小写转换方面)。我认为上述问题可能会导致 UTF-8 字符在用户名中存在安全隐患,除非实施另一种涉及用户 ID 的路由方式。

因此,这是一个重新审视该决定的好机会 :slight_smile:

特此说明:当用户名被更改时,引用和提及现在会自动更新。更改用户名不会导致引用和提及失效。

8 个赞