Add lud16 to profile

This commit is contained in:
Jonathan Staab 2023-03-02 15:37:45 -06:00
parent 4d86f8bf60
commit 12201b7967
4 changed files with 16 additions and 4 deletions

View File

@ -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

View File

@ -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 {

View File

@ -9,7 +9,7 @@
<svelte:body
on:keydown={e => {
if (e.key === 'Escape' && !root.querySelector('.modal')) {
onEscape()
onEscape?.()
}
}} />

View File

@ -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 @@
<i slot="before" class="fa-solid fa-user-check" />
</Input>
<p class="text-sm text-light">
Enter a <Anchor external href={nip05Url}>NIP-05</Anchor> identifier in the form
"name@domain.com" to verify your public key.
Enter a <Anchor external href={nip05Url}>NIP-05</Anchor> address to verify
your public key.
</p>
</div>
<div class="flex flex-col gap-1">
<strong>Lightning address</strong>
<Input type="text" name="name" wrapperClass="flex-grow" bind:value={values.lud16}>
<i slot="before" class="fa-solid fa-bolt" />
</Input>
<p class="text-sm text-light">
Enter a <Anchor external href={lud16Url}>LUD-16</Anchor> address to enable
sending and receiving lightning tips (LUD-06 will also work).
</p>
</div>
<div class="flex flex-col gap-1">