planetary-social / nos

nos.social social media for all of us, using nostr
https://nos.social
Mozilla Public License 2.0
123 stars 14 forks source link

Loading new npub's from nip-5/npub causes error screen #1652

Open rabble opened 1 month ago

rabble commented 1 month ago

Describe the bug

When directly loading a new user profile from a nip-05 or npub in the discovery search box the first time a user profile loads it shows nothign and says the user name is ERROR.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Disovery
  2. Paste in new to this app nip05/npub
  3. View profile with Error
  4. Reload screen, and it works.

Expected behavior

Profile pages should load correctly the first time they're accesssed.

Technical info

Additional context

Here's a link to the database and logs for it happening.

https://drive.google.com/file/d/1XInUzP6g9XmwH5qzRZsdElhqZhHhQq2C/view?usp=drive_link https://docs.google.com/document/d/1hZZytSfDRR_p2xgEEK8hKeVOPZccKQ_AmJRP0zi0Wbg/edit?usp=drive_link