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:
parent
fef5dbb6e2
commit
1015901a9d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user