renderAccount: fix display of roles

This commit is contained in:
Alex Gleason
2024-06-08 13:14:07 -05:00
parent e5fadafc7a
commit 284ae9aab7

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,