Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
How to keep displayed usernames unique even if the user account is deleted?
On Stack Exchange (SE) I could have a really hard time following a discussion in comments between multiple users if one of the users deleted their account or changed their username.
Here on Codidact, this "problem" seems to be handled much better as the username seems to change when a user deletes their account or changes their username.
Here is an example of the current behavior (from here):
The username (shown as "deleted user") is even still clickable (hyperlink retained)!
Then it's much easier to follow a thread, but what if there are two (or more) deleted users chatting in the thread? How to make the discussion still understandable?
So the question is: How to keep displayed usernames unique even if the user account is deleted?
A solution could be to assign a unique number to the username after deletion, e.g. "deleted user #9999999" (but I'm not aware of the implication of such a feature because even if the account is deleted, all user activity can be easily traced...).
(BTW, currently the clickable link related to the deleted user name redirect to the top of the current page (also in comment thread view), maybe it would be better to redirect to a page related to account management or something but it will be harder to maintain... EDIT after an answer: this redirection to top page is a reported bug)