summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-02 05:12:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-02 05:12:59 +0900
commit17c8969fd2ff51096fcde8d0ae272ca67202f55d (patch)
tree698c456a384ade8828091afdc3cdba1dd9f20207 /src
parentwip (diff)
downloadsharkey-17c8969fd2ff51096fcde8d0ae272ca67202f55d.tar.gz
sharkey-17c8969fd2ff51096fcde8d0ae272ca67202f55d.tar.bz2
sharkey-17c8969fd2ff51096fcde8d0ae272ca67202f55d.zip
fix
Diffstat (limited to 'src')
-rw-r--r--src/api/endpoints/posts/create.js2
1 files changed, 1 insertions, 1 deletions
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');
}