diff options
Diffstat (limited to 'src/api/endpoints/posts')
| -rw-r--r-- | src/api/endpoints/posts/reposts.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/reposts.js b/src/api/endpoints/posts/reposts.js index a118ca6fba..ed97a601e3 100644 --- a/src/api/endpoints/posts/reposts.js +++ b/src/api/endpoints/posts/reposts.js @@ -55,13 +55,13 @@ module.exports = (params, user) => // Construct query const sort = { - created_at: -1 + _id: -1 }; const query = { repost_id: post._id }; if (since !== null) { - sort.created_at = 1; + sort._id = 1; query._id = { $gt: new mongo.ObjectID(since) }; |