forem icon indicating copy to clipboard operation
forem copied to clipboard

Existing User Marked as 'Not Found' in Notification Panel

Open shricodev opened this issue 10 months ago • 1 comments

Describe the bug

Sometimes, when I receive a reaction notification on my blog post and try to click on the user profile, it redirects me to a profile that does not exist.

A user on DEV.to

NOTE: when I hover over the user profile, it shows this as their profile URL: https://dev.to/diego_reinoso_ec97def42bf and when I visit the URL for that particular user, it shows the 404 page,

DEV.to 404 page

However, when I go to my blog stats page and click on the user, it redirects me to this URL: https://dev.to/diego_reinoso

Now, when I click on the user, it redirects me to the correct link for the user, and it exists.

A user on DEV.to

To Reproduce

I am not sure if this is the right way to reproduce the error, as I don't know this for sure (just a guess), but I believe this is happening because when the user signed up and reacted to a post, they had the auto-generated username from DEV, and just after reacting to the post, they changed the username. I believe that is causing the notification URL to be out of sync with the changed username URL.

  1. Create a new account with an auto-generated username.
  2. React to a post.
  3. Change your username to something else.
  4. Now, the author of the post will receive a notification with the previous username's URL, which will result in a 404.

Expected behavior

No matter if the user changes their username after reacting to the post, the notification the author receives should include the updated URL for the user.

Desktop (please complete the following information):

  • OS, version: Linux archlinux 6.12.8-arch1-1 #\1 SMP PREEMPT_DYNAMIC Thu, 02 Jan 2025 22:52:26 +0000 x86_64 GNU/Linux
  • Browser, version: 1.6b (Firefox 134.0) (64-bit) - Zen Browser

shricodev avatar Jan 12 '25 03:01 shricodev