enhance(federation): use ActivityPub defined property in favour of proprietary property. (#8787)

* add activitypub `source` property

* parse MFM from new `source` attribute
This commit is contained in:
Johann150
2022-06-10 07:31:58 +02:00
committed by GitHub
parent 42f48ffea2
commit a683a7092d
3 changed files with 20 additions and 3 deletions

View File

@ -138,6 +138,10 @@ export default async function renderNote(note: Note, dive = true, isTalk = false
summary,
content,
_misskey_content: text,
source: {
content: text,
mediaType: "text/x.misskeymarkdown",
},
_misskey_quote: quote,
quoteUrl: quote,
published: note.createdAt.toISOString(),