From 12201b796716138b5fe47e047309167319fa86cf Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Thu, 2 Mar 2023 15:37:45 -0600 Subject: [PATCH] Add lud16 to profile --- ROADMAP.md | 1 + src/agent/pool.ts | 2 +- src/partials/Modal.svelte | 2 +- src/views/Profile.svelte | 15 +++++++++++++-- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index e9ce8f18..d2973093 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,5 +1,6 @@ # Current +- [ ] Add zaps to notifications - [ ] Try adding boxes/separation on feeds based on user feedback - [ ] Strip zero width spaces from compose - [ ] Fix iOS/safari/firefox diff --git a/src/agent/pool.ts b/src/agent/pool.ts index 37cb718b..e6203a1a 100644 --- a/src/agent/pool.ts +++ b/src/agent/pool.ts @@ -139,7 +139,7 @@ const connect = url => { // Public api - publish/subscribe -const publish = async ({relays, event, onProgress, timeout = 10_000}) => { +const publish = async ({relays, event, onProgress, timeout = 5000}) => { if (relays.length === 0) { error(`Attempted to publish to zero relays`, event) } else { diff --git a/src/partials/Modal.svelte b/src/partials/Modal.svelte index b4ee9f61..87f4b360 100644 --- a/src/partials/Modal.svelte +++ b/src/partials/Modal.svelte @@ -9,7 +9,7 @@ { if (e.key === 'Escape' && !root.querySelector('.modal')) { - onEscape() + onEscape?.() } }} /> diff --git a/src/views/Profile.svelte b/src/views/Profile.svelte index b8def701..c8db6722 100644 --- a/src/views/Profile.svelte +++ b/src/views/Profile.svelte @@ -18,6 +18,7 @@ let values = user.getProfile().kind0 || {} const nip05Url = "https://github.com/nostr-protocol/nips/blob/master/05.md" + const lud16Url = "https://blog.getalby.com/create-your-lightning-address/" const pseudUrl = "https://www.coindesk.com/markets/2020/06/29/many-bitcoin-developers-are-choosing-to-use-pseudonyms-for-good-reason/" onMount(async () => { @@ -60,8 +61,18 @@

- Enter a NIP-05 identifier in the form - "name@domain.com" to verify your public key. + Enter a NIP-05 address to verify + your public key. +

+ +
+ Lightning address + + + +

+ Enter a LUD-16 address to enable + sending and receiving lightning tips (LUD-06 will also work).