Fix question (#5197)

This commit is contained in:
MeiMei
2019-07-20 03:20:06 +09:00
committed by syuilo
parent 42af8c7695
commit f1ab918ecd
6 changed files with 3 additions and 33 deletions

View File

@@ -215,8 +215,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
const apEmojis = emojis.map(emoji => emoji.name);
const questionUri = note._misskey_question;
const poll = await extractPollFromQuestion(note._misskey_question || note, resolver).catch(() => undefined);
const poll = await extractPollFromQuestion(note, resolver).catch(() => undefined);
// ユーザーの情報が古かったらついでに更新しておく
if (actor.lastFetchedAt == null || Date.now() - actor.lastFetchedAt.getTime() > 1000 * 60 * 60 * 24) {
@@ -239,7 +238,6 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
apMentions,
apHashtags,
apEmojis,
questionUri,
poll,
uri: note.id
}, silent);