fiatjaf / nostr-gateway

https://nostr.guru
https://nostr-gateway.vercel.app
The Unlicense
70 stars 16 forks source link

should resolve note1 #12

Closed pseudozach closed 1 year ago

pseudozach commented 1 year ago

searching for note13ze29u9dtxn4ua692fljfyyh4hdkvlcrdd2z04nl0ll48n0f0d4qpadtle fails with 404. should be able to decode and then resolve the note.

fiatjaf commented 1 year ago

I agree.

barkyq commented 1 year ago

+1 was trying this today also with nevent1... didn't work... thought it might by the phrasing of the prompt.

fiatjaf commented 1 year ago

It is not supported in the code. We must upgrade to the latest nostr-tools to get the NIP-19 handling functions, but that will require a little refactor.

pseudozach commented 1 year ago

I couldn't get around to this and I see this repo is updated and expects nip19 encoding now but now hex events are returning 500 error.

fiatjaf commented 1 year ago

They work if you paste them on the URL directly: https://nostr.guru/e/3976fffe216d8f1a9f719338fefee6f5a3ece70409895ffca31993f4eb8b2b0a

note, nevent, nprofile and npub work too if you either use the input box or use https://nostr.guru/nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpr4mhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet5qyw8wumn8ghj7mn0wd68yttjv4kxz7fww4h8get5dpezumt9qy38wumn8ghj7mn0wd68yttkv4exjenfv4jzuam9d3kx7unyv4ezumn9wslzm9ln