renderAccount: only display up to 10 profile fields

This commit is contained in:
Alex Gleason 2024-11-20 10:50:49 -06:00
parent 7227202a86
commit 39cb1ec0c9
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -60,7 +60,7 @@ async function renderAccount(
} }
} }
const { html } = parseNoteContent(about || '', []); const { html } = parseNoteContent(about || '', []);
const fields = _fields?.map(([name, value]) => ({ name, value, verified_at: null })) ?? []; const fields = _fields?.slice(0, 10).map(([name, value]) => ({ name, value, verified_at: null })) ?? [];
return { return {
id: pubkey, id: pubkey,