renderAccount: fix display of roles

This commit is contained in:
Alex Gleason 2024-06-08 13:14:07 -05:00
parent e5fadafc7a
commit 284ae9aab7
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ async function renderAccount(
const npub = nip19.npubEncode(pubkey);
const parsed05 = await parseAndVerifyNip05(nip05, pubkey);
const roles = getTagSet(event.tags, 'n');
const roles = getTagSet(event.user?.tags ?? [], 'n');
return {
id: pubkey,