Skip to content
Snippets Groups Projects
Unverified Commit 725b7834 authored by Johann150's avatar Johann150 Committed by GitHub
Browse files

recognize null in _misskey_content for notes (#8440)

parent 08bace6c
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
const cw = note.summary === '' ? null : note.summary;
// テキストのパース
const text = note._misskey_content || (note.content ? htmlToMfm(note.content, note.tag) : null);
const text = typeof note._misskey_content !== 'undefined' ? note._misskey_content : (note.content ? htmlToMfm(note.content, note.tag) : null);
// vote
if (reply && reply.hasPoll) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment