feat: save user lud16 & website into kind 0

This commit is contained in:
P. Reis
2024-05-23 15:59:29 -03:00
parent e06dda4014
commit c7726b652b
2 changed files with 9 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ async function renderAccount(
about,
lud06,
lud16,
website,
} = n.json().pipe(n.metadata()).catch({}).parse(event.content);
const npub = nip19.npubEncode(pubkey);
@@ -83,7 +84,9 @@ async function renderAccount(
},
nostr: {
pubkey,
lud16,
},
website,
};
}