mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
renderAccount: only display up to 10 profile fields
This commit is contained in:
parent
7227202a86
commit
39cb1ec0c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue