PrimalHQ / primal-web-app

Primal's web app for Nostr, as experienced on primal.net.
https://primal.net
MIT License
190 stars 37 forks source link

nevent note id previews #79

Open TonyGiorgio opened 3 months ago

TonyGiorgio commented 3 months ago

Summary

Seems like every client has moved to using nevent instead of noteid. Primal's copy note id function still uses normal note IDs.

Further, primal should preview these notes. At the very least, preview the note when the note ID is pasted if primal keeps note id instead of nevent.

Basic example

Here is a nevent of a note that I used primal to copy another note id.

nostr:nevent1qqs22ngs7gaxghh7f8ey88hgead5ndmtd2fgfqye0datqr8twhh7snqpr3mhxue69uhkummnw3ezucnfw33k76twv4ezuum0vd5kzmqzypd7v3r24z33cydnk3fmlrd0exe5dlej3506zxs05q4puerp765mzqcyqqqqqqgc2w4wv

Motivation

I just want note previews to work properly on the web and it seems like nevent has been the new standard for a long time.