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

Typing "abcd" in search navigates to a profile #916

Open joshuatbrown opened 8 months ago

joshuatbrown commented 8 months ago

When I type "abcd" in the search bar, I'm taken to a profile for the following npub: npub140xserft56

This npub looks invalid, and I'm not sure the search matches it at all, but whatever is going on should not be.

https://github.com/planetary-social/nos/assets/59564/065156ef-940b-4394-b6d5-976aaccc4b1e

mplorentz commented 8 months ago

My theory is that we have an Author record in the database with this invalid npub. Maybe they are being created from a invalid link in a note or a contact list or something? Wherever it is we should probably be calling RawNostrID.isValid to filter it out before it gets into the db.