mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 05:55:14 +00:00
merge: fix: send MFM payload for notes that don't contain advanced MFM (!710)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/710 Closes #647 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
commit
4fed355592
1 changed files with 6 additions and 8 deletions
|
@ -420,7 +420,7 @@ export class ApRendererService {
|
||||||
|
|
||||||
const summary = note.cw === '' ? String.fromCharCode(0x200B) : note.cw;
|
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 emojis = await this.getEmojis(note.emojis);
|
||||||
const apemojis = emojis.filter(emoji => !emoji.localOnly).map(emoji => this.renderEmoji(emoji));
|
const apemojis = emojis.filter(emoji => !emoji.localOnly).map(emoji => this.renderEmoji(emoji));
|
||||||
|
@ -450,13 +450,11 @@ export class ApRendererService {
|
||||||
attributedTo,
|
attributedTo,
|
||||||
summary: summary ?? undefined,
|
summary: summary ?? undefined,
|
||||||
content: content ?? undefined,
|
content: content ?? undefined,
|
||||||
...(noMisskeyContent ? {} : {
|
_misskey_content: text,
|
||||||
_misskey_content: text,
|
source: {
|
||||||
source: {
|
content: text,
|
||||||
content: text,
|
mediaType: 'text/x.misskeymarkdown',
|
||||||
mediaType: 'text/x.misskeymarkdown',
|
},
|
||||||
},
|
|
||||||
}),
|
|
||||||
_misskey_quote: quote,
|
_misskey_quote: quote,
|
||||||
quoteUrl: quote,
|
quoteUrl: quote,
|
||||||
quoteUri: quote,
|
quoteUri: quote,
|
||||||
|
|
Loading…
Reference in a new issue