mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 05:24:22 +01:00
renderAccount: only display up to 10 profile fields
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user