Skip to content

Commit

Permalink
fix: correctly render note text
Browse files Browse the repository at this point in the history
Fix a regression from #8787 that was previously fixed in #8440.
  • Loading branch information
Johann150 committed Jun 16, 2022
1 parent 4a55425 commit b54f906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/remote/activitypub/models/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
let text: string | null = null;
if (note.source?.mediaType === 'text/x.misskeymarkdown' && typeof note.source?.content === 'string') {
text = note.source.content;
} else if (typeof note._misskey_content === 'string') {
} else if (typeof note._misskey_content !== 'undefined') {
text = note._misskey_content;
} else if (typeof note.content === 'string') {
text = htmlToMfm(note.content, note.tag);
Expand Down

0 comments on commit b54f906

Please sign in to comment.