avoid parsing undefined

I don't understand why upstream wouldn't have this same problem ☹

We already have this same conditional in `ApRenderService.renderNote`
and `ApRenderService.renderUpNote`, and Misskey doesn't
This commit is contained in:
dakkar 2024-02-13 14:04:07 +00:00
parent fef5dbb6e2
commit 1015901a9d
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export class ApMfmService {
noMisskeyContent = true;
}
const content = this.mfmService.toHtml(parsed, JSON.parse(note.mentionedRemoteUsers));
const content = this.mfmService.toHtml(parsed, note.mentionedRemoteUsers ? JSON.parse(note.mentionedRemoteUsers) : []);
return {
content,