Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Server: fix videos pagination

Chocobozzz4fea95df0473
diff --git a/server/models/video.js b/server/models/video.js
index 1c06e477cc..8054caa773 100644
--- a/server/models/video.js
+++ b/server/models/video.js
@@ -248,7 +248,7 @@ function findWithCount (query, start, count, sort, callback) {
async.parallel([
function (asyncCallback) {
- self.find(query).skip(start).limit(start + count).sort(sort).exec(asyncCallback)
+ self.find(query).skip(start).limit(count).sort(sort).exec(asyncCallback)
},
function (asyncCallback) {
self.count(query, asyncCallback)