diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-05 12:09:34 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-05 12:09:34 +0900 |
| commit | 034c7c083adf5433f1956753cd1b98d54483db4a (patch) | |
| tree | 2e41ea90e53d1349abf44444c2f1e6b2ec3de783 /src/api/endpoints/posts/reposts.ts | |
| parent | Use cafy (diff) | |
| download | sharkey-034c7c083adf5433f1956753cd1b98d54483db4a.tar.gz sharkey-034c7c083adf5433f1956753cd1b98d54483db4a.tar.bz2 sharkey-034c7c083adf5433f1956753cd1b98d54483db4a.zip | |
fix
Diffstat (limited to 'src/api/endpoints/posts/reposts.ts')
| -rw-r--r-- | src/api/endpoints/posts/reposts.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/reposts.ts b/src/api/endpoints/posts/reposts.ts index 14de17992d..5098d5af81 100644 --- a/src/api/endpoints/posts/reposts.ts +++ b/src/api/endpoints/posts/reposts.ts @@ -14,7 +14,7 @@ import serialize from '../../serializers/post'; */ module.exports = (params, user) => new Promise(async (res, rej) => { // Get 'post_id' parameter - const [postId, postIdErr] = it(params.post_id, 'id', true); + const [postId, postIdErr] = it(params.post_id, 'id!').get(); if (postIdErr) return rej('invalid post_id param'); // Get 'limit' parameter |