mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fixed to use postsPerPage
This commit is contained in:
@@ -39,8 +39,8 @@ topicsController.get = function(req, res, next) {
|
|||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
var start = (page - 1) * settings.topicsPerPage,
|
var start = (page - 1) * settings.postsPerPage,
|
||||||
end = start + settings.topicsPerPage - 1;
|
end = start + settings.postsPerPage - 1;
|
||||||
|
|
||||||
topics.getTopicWithPosts(tid, uid, start, end, function (err, topicData) {
|
topics.getTopicWithPosts(tid, uid, start, end, function (err, topicData) {
|
||||||
if (topicData) {
|
if (topicData) {
|
||||||
|
|||||||
Reference in New Issue
Block a user