diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-02 05:12:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-02 05:12:59 +0900 |
| commit | 17c8969fd2ff51096fcde8d0ae272ca67202f55d (patch) | |
| tree | 698c456a384ade8828091afdc3cdba1dd9f20207 /src/api/endpoints/posts | |
| parent | wip (diff) | |
| download | sharkey-17c8969fd2ff51096fcde8d0ae272ca67202f55d.tar.gz sharkey-17c8969fd2ff51096fcde8d0ae272ca67202f55d.tar.bz2 sharkey-17c8969fd2ff51096fcde8d0ae272ca67202f55d.zip | |
fix
Diffstat (limited to 'src/api/endpoints/posts')
| -rw-r--r-- | src/api/endpoints/posts/create.js | 2 |
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'); } |