User card doesn't show up properly once an account is de-activated

AI-generated summary

The discussion addresses a bug where the user card fails to display properly when clicking on an avatar of a deactivated account, particularly in topics with oneboxes. pfaffman first noted the issue, linking to a topic where the user card either doesn’t appear or disappears immediately. codinghorror identified a JavaScript error in the console as the cause. sam confirmed the issue occurs when accessing a deactivated account, suggesting the system should handle 404 responses by displaying a message like “account not active.” pfaffman acknowledged the issue, and sam clarified that the bug is already assigned, with nbianca having fixed it in a pull request here.

Over at What happens when a topic has over 1000 replies? - general - Discourse Demo if you click on the avatar of the first post or Sam’s 3rd post, the user card either doesn’t come up or immediately disappears. Also this post.

I think it has to do with there being a one-box there, though the onebox explanation doesn’t cover the first-post case.

4 Likes

I think I see the problem @sam in the f12 error console

2 Likes

The repro here is

  • Register an account
  • De-activate account
  • Onebox then will pop open and close

Very big edge case … I guess if we get a 404 or something when asking for extra data we should say “account not active” or something like that.

5 Likes

Oh. That seems like… Nothing. Sorry.

1 Like

Odd, we actually have this assigned out at the moment.

I believe @nbianca is working on a fix.

2 Likes

I have fixed this bug in:

https://github.com/discourse/discourse/pull/21387

1 Like

This topic was automatically closed after 37 hours. New replies are no longer allowed.