Stacker News Bug Report
Description:
In the scenario where a user initially has the username A, creates a post or comment, and subsequently changes his username to B, the search results for username A still display the posts or comments associated with the original user who now has username B.
The search feature should only display results corresponding to the username entered. Therefore, when searching for the old username A the content associated with the username B should not be shown.
Reproduction Steps:
- Have an account with username A.
- Create a post or comment.
- Change account username to B.
- Go on https://stacker.news/search and search for username A.
Actual Result:
When searching for the old username A, posts and comments of username B are being displayed.
Expected Result:
When searching for the old username A, no posts or comments should be displayed, because the user of those posts/comments has changed his username to B.
Impact:
This issue may cause confusion for users when using the search feature and compromise the privacy of the user who changed his username.