mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
[backend] Add _misskey_summary field
This fixes federation of MFM in user bios between *key instances Co-authored-by: default avatarkakkokari-gtyih <daisho7308+f@gmail.com> ref: https://github.com/misskey-dev/misskey/pull/12184
This commit is contained in:
parent
b6ee1c5dc4
commit
9d4f74d290
@ -604,9 +604,11 @@ export async function updatePerson(
|
|||||||
{
|
{
|
||||||
url: url,
|
url: url,
|
||||||
fields,
|
fields,
|
||||||
description: person.summary
|
description: person._misskey_summary
|
||||||
? await htmlToMfm(truncate(person.summary, summaryLength), person.tag)
|
? truncate(person._misskey_summary, summaryLength)
|
||||||
: null,
|
: person.summary
|
||||||
|
? await htmlToMfm(truncate(person.summary, summaryLength), person.tag)
|
||||||
|
: null,
|
||||||
birthday: bday ? bday[0] : null,
|
birthday: bday ? bday[0] : null,
|
||||||
location: person["vcard:Address"] || null,
|
location: person["vcard:Address"] || null,
|
||||||
},
|
},
|
||||||
|
@ -41,6 +41,7 @@ export const renderActivity = (x: any): IActivity | null => {
|
|||||||
_misskey_reaction: "misskey:_misskey_reaction",
|
_misskey_reaction: "misskey:_misskey_reaction",
|
||||||
_misskey_votes: "misskey:_misskey_votes",
|
_misskey_votes: "misskey:_misskey_votes",
|
||||||
_misskey_talk: "misskey:_misskey_talk",
|
_misskey_talk: "misskey:_misskey_talk",
|
||||||
|
_misskey_summary: "misskey:_misskey_summary",
|
||||||
isCat: "misskey:isCat",
|
isCat: "misskey:isCat",
|
||||||
// Fedibird
|
// Fedibird
|
||||||
fedibird: "http://fedibird.com/ns#",
|
fedibird: "http://fedibird.com/ns#",
|
||||||
|
@ -75,6 +75,7 @@ export async function renderPerson(user: ILocalUser) {
|
|||||||
summary: profile.description
|
summary: profile.description
|
||||||
? await toHtml(mfm.parse(profile.description), profile.mentions, profile.userHost)
|
? await toHtml(mfm.parse(profile.description), profile.mentions, profile.userHost)
|
||||||
: null,
|
: null,
|
||||||
|
_misskey_summary: profile.description,
|
||||||
icon: avatar ? renderImage(avatar) : null,
|
icon: avatar ? renderImage(avatar) : null,
|
||||||
image: banner ? renderImage(banner) : null,
|
image: banner ? renderImage(banner) : null,
|
||||||
tag,
|
tag,
|
||||||
|
@ -206,6 +206,7 @@ export interface IActor extends IObject {
|
|||||||
};
|
};
|
||||||
"vcard:bday"?: string;
|
"vcard:bday"?: string;
|
||||||
"vcard:Address"?: string;
|
"vcard:Address"?: string;
|
||||||
|
_misskey_summary?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isCollection = (object: IObject): object is ICollection =>
|
export const isCollection = (object: IObject): object is ICollection =>
|
||||||
|
Loading…
Reference in New Issue
Block a user