Revert "renderAccount: fix crash encoding invalid pubkey"

This reverts commit ffda62a4b0.
This commit is contained in:
Alex Gleason 2024-06-01 10:40:00 -05:00
parent f30319bea2
commit 4e80fdcc7d
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 7 deletions

View File

@ -31,13 +31,7 @@ async function renderAccount(
website,
} = n.json().pipe(n.metadata()).catch({}).parse(event.content);
let npub: string;
try {
npub = nip19.npubEncode(pubkey);
} catch {
return;
}
const npub = nip19.npubEncode(pubkey);
const parsed05 = await parseAndVerifyNip05(nip05, pubkey);
const role = event.user?.tags.find(([name]) => name === 'role')?.[1] ?? 'user';