From 17c8969fd2ff51096fcde8d0ae272ca67202f55d Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Thu, 2 Mar 2017 05:12:59 +0900
Subject: [PATCH] fix

---
 src/api/endpoints/posts/create.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/endpoints/posts/create.js b/src/api/endpoints/posts/create.js
index 9070dcb413..151938004d 100644
--- a/src/api/endpoints/posts/create.js
+++ b/src/api/endpoints/posts/create.js
@@ -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');
 	}