mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 01:43:09 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue