From f4e1a9c5de0923700b257f30c5f1bc470c2649ad Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Wed, 7 Jun 2023 04:26:16 -0700 Subject: [PATCH] Fix NoteShare --- ROADMAP.md | 3 +++ src/app/views/Apps.svelte | 1 + src/app/views/Bech32Entity.svelte | 2 ++ src/app/views/NoteShare.svelte | 3 ++- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 24ba0a57..0bb67b6c 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,5 +1,6 @@ # Current +- [ ] List detail pages with follow all and add all to list - [ ] Use vida to stream development - [ ] Fix connection management stuff. Have GPT help - [ ] Add threads - replies by self get shown at the top of replies? @@ -21,6 +22,8 @@ # Core +- [ ] Show link previews when posting +- [ ] Embedded music players for Spotify, youtube, etc - [ ] Make mutes private - [ ] Add nostrscript nevent1qqsvetmqsk8025jadyn82cpmkgxcesjffqajssd2qaq0k8arw9v79tsppadk7cn2v43hggz0vf4x2cm5t5yt4dnl - [ ] Highlights diff --git a/src/app/views/Apps.svelte b/src/app/views/Apps.svelte index f5f11f79..01121267 100644 --- a/src/app/views/Apps.svelte +++ b/src/app/views/Apps.svelte @@ -22,6 +22,7 @@ ["https://getalby.com", "Alby", "Sign in to nostr apps without sharing your private key."], ["https://nak.nostr.com", "NAK", "A Nostr Army Knife, for advanced users."], ["https://nostrplebs.com", "NostrPlebs", "Get verified at nostrplebs.com."], + ["https://nadar.tigerville.no", "Nadar", "Find out what relays know about your post."], ] document.title = "Apps" diff --git a/src/app/views/Bech32Entity.svelte b/src/app/views/Bech32Entity.svelte index 13964e5d..d32c3e2e 100644 --- a/src/app/views/Bech32Entity.svelte +++ b/src/app/views/Bech32Entity.svelte @@ -23,6 +23,8 @@ } catch (e) { warn(e) } + + console.log(type, data) }) diff --git a/src/app/views/NoteShare.svelte b/src/app/views/NoteShare.svelte index 43274342..9548a202 100644 --- a/src/app/views/NoteShare.svelte +++ b/src/app/views/NoteShare.svelte @@ -7,7 +7,8 @@ export let note - const nevent = nip19.neventEncode({id: note.id, relays: [getRelayForEventHint(note)]}) + const {url} = getRelayForEventHint(note) + const nevent = nip19.neventEncode({id: note.id, relays: [url]})