fix: send MFM payload for notes that don't contain advanced MFM (resolves #647)

This commit is contained in:
Laura Hausmann 2024-10-24 05:36:26 +02:00
parent 60be692a0a
commit d52f4748f2
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -420,7 +420,7 @@ export class ApRendererService {
const summary = note.cw === '' ? String.fromCharCode(0x200B) : note.cw;
const { content, noMisskeyContent } = this.apMfmService.getNoteHtml(note, apAppend);
const { content } = this.apMfmService.getNoteHtml(note, apAppend);
const emojis = await this.getEmojis(note.emojis);
const apemojis = emojis.filter(emoji => !emoji.localOnly).map(emoji => this.renderEmoji(emoji));
@ -450,13 +450,11 @@ export class ApRendererService {
attributedTo,
summary: summary ?? undefined,
content: content ?? undefined,
...(noMisskeyContent ? {} : {
_misskey_content: text,
source: {
content: text,
mediaType: 'text/x.misskeymarkdown',
},
}),
_misskey_content: text,
source: {
content: text,
mediaType: 'text/x.misskeymarkdown',
},
_misskey_quote: quote,
quoteUrl: quote,
quoteUri: quote,