Open zetyty opened 1 year ago
When someone works on this, it's worth also checking the behaviour of the deleted user name below one of the deleted user's posts (for example, a question or answer).
Ideally (in my opinion), deleted users in both comments and posts would be links for people who can see deleted profile pages (i.e. moderators and admins) and, for people who can't see those profiles, would either not be links at all or would link to a relevant help topic.
This issue is also present on search result pages; for example: https://meta.codidact.com/posts/search?search=5+tag+limit#
by deleted user
Also post lists: https://meta.codidact.com/posts/290947
I haven't looked at the source code, but it would really surprise me if this wasn't an intentional decision. It seems to be that anywhere a link to a deleted user is presented in the UI, it's replaced with a link to the current page itself. Something is responsible for that, and it's probably the same piece of code generating all of these.
I don't think we want the mostly-no-op link, though; if there's no user page to link to, we should show the text without making it a link. (Small tweak: moderators can see deleted profiles, so this should be behind a check for mod status.)
I don't think we want the mostly-no-op link, though; if there's no user page to link to, we should show the text without making it a link. (Small tweak: moderators can see deleted profiles, so this should be behind a check for mod status.)
There are other options:
Describe the bug See Meta post: https://meta.codidact.com/posts/288749 The name of a deleted user in a comment thread appears with a clickable link. This link redirect to the top of the current page (tested in "main" view and in comment thread view). Also occurs in search results.
To Reproduce Steps to reproduce the behavior:
Expected behavior I don't know, the link could just be removed because the user was deleted or it could redirect to a dedicated page about general information regarding user account management or something...