mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +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) {
|
||||
var start = (page - 1) * itemsPerPage;
|
||||
var stop = start + itemsPerPage;
|
||||
var stop = start + itemsPerPage - 1;
|
||||
method(setName, req.uid, start, stop, next);
|
||||
}
|
||||
}, function(err, results) {
|
||||
|
||||
Reference in New Issue
Block a user