This commit is contained in:
syuilo 2017-01-17 11:11:22 +09:00
parent caa8aee7a0
commit 9f81288fcc
48 changed files with 91 additions and 140 deletions

View file

@ -78,11 +78,10 @@ module.exports = (params, me) =>
// Get followers
const following = await Following
.find(query, {}, {
.find(query, {
limit: limit + 1,
sort: { _id: -1 }
})
.toArray();
});
// 「次のページ」があるかどうか
const inStock = following.length === limit + 1;