fix ignoring person._misskey_summary on updating remote profiles

This commit is contained in:
blueb 2023-12-04 04:45:33 +00:00 committed by Kainoa Kanter
parent 831b3d4ee2
commit e1dcba9aba

View file

@ -590,7 +590,9 @@ export async function updatePerson(
{ {
url: url, url: url,
fields, fields,
description: person.summary description: person._misskey_summary
? truncate(person._misskey_summary, summaryLength)
: person.summary
? htmlToMfm(truncate(person.summary, summaryLength), person.tag) ? htmlToMfm(truncate(person.summary, summaryLength), person.tag)
: null, : null,
birthday: bday ? bday[0] : null, birthday: bday ? bday[0] : null,