Merge branch 'fields' into 'main'

Linkify profile field values

See merge request soapbox-pub/ditto!593
This commit is contained in:
Alex Gleason 2024-11-20 17:09:45 +00:00
commit 6ee4e0877a

View file

@ -79,7 +79,7 @@ async function renderAccount(
discoverable: true, discoverable: true,
display_name: name ?? '', display_name: name ?? '',
emojis: renderEmojis(event), emojis: renderEmojis(event),
fields, fields: fields.map((field) => ({ ...field, value: parseNoteContent(field.value, []).html })),
follow_requests_count: 0, follow_requests_count: 0,
followers_count: event.author_stats?.followers_count ?? 0, followers_count: event.author_stats?.followers_count ?? 0,
following_count: event.author_stats?.following_count ?? 0, following_count: event.author_stats?.following_count ?? 0,