mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix off by 1 error on user/topics posts #3120
This commit is contained in:
@@ -298,7 +298,7 @@ function getFromUserSet(tpl, set, method, type, req, res, next) {
|
|||||||
},
|
},
|
||||||
data: function(next) {
|
data: function(next) {
|
||||||
var start = (page - 1) * itemsPerPage;
|
var start = (page - 1) * itemsPerPage;
|
||||||
var stop = start + itemsPerPage;
|
var stop = start + itemsPerPage - 1;
|
||||||
method(setName, req.uid, start, stop, next);
|
method(setName, req.uid, start, stop, next);
|
||||||
}
|
}
|
||||||
}, function(err, results) {
|
}, function(err, results) {
|
||||||
|
|||||||
Reference in New Issue
Block a user