diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 11:11:22 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 11:11:22 +0900 |
| commit | 9f81288fccdbaf9184d49e61680747945b34f23d (patch) | |
| tree | dce25db34136ffd9c05852ed4c2c493c23c96c07 /src/api/endpoints/posts/replies.js | |
| parent | Fix bug (diff) | |
| download | misskey-9f81288fccdbaf9184d49e61680747945b34f23d.tar.gz misskey-9f81288fccdbaf9184d49e61680747945b34f23d.tar.bz2 misskey-9f81288fccdbaf9184d49e61680747945b34f23d.zip | |
Fix bug
Diffstat (limited to 'src/api/endpoints/posts/replies.js')
| -rw-r--r-- | src/api/endpoints/posts/replies.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/endpoints/posts/replies.js b/src/api/endpoints/posts/replies.js index 5eab6f896f..5ce1133e00 100644 --- a/src/api/endpoints/posts/replies.js +++ b/src/api/endpoints/posts/replies.js @@ -58,14 +58,13 @@ module.exports = (params, user) => // Issue query const replies = await Post - .find({ reply_to_id: post._id }, {}, { + .find({ reply_to_id: post._id }, { limit: limit, skip: offset, sort: { _id: sort == 'asc' ? 1 : -1 } - }) - .toArray(); + }); // Serialize res(await Promise.all(replies.map(async post => |