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

View File

@@ -60,7 +60,7 @@ async function renderAccount(
}
}
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 {
id: pubkey,