mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-09 04:23:08 +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;
|
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 {
|
return {
|
||||||
content,
|
content,
|
||||||
|
|
Loading…
Reference in a new issue