This commit is contained in:
syuilo 2017-03-02 05:12:59 +09:00
parent fd0ce15b1b
commit 17c8969fd2
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ module.exports = (params, user, app) =>
}
// テキストが無いかつ添付ファイルが無いかつRepostも無いかつ投票も無かったらエラー
if (text === null && files === null && repost === null && pollChoices === null) {
if (text === null && files === null && repost === null && poll === null) {
return rej('text, media_ids, repost_id or poll is required');
}