recognize null in _misskey_content for notes (#8440)

This commit is contained in:
Johann150 2022-03-22 18:16:04 +00:00 committed by GitHub
parent 08bace6c7d
commit 725b78349a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
const cw = note.summary === '' ? null : note.summary; 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 // vote
if (reply && reply.hasPoll) { if (reply && reply.hasPoll) {