|
|
@ -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) {
|
|
|
|