|
|
@ -55,7 +55,7 @@ var path = require('path'),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function iterator(category, callback) {
|
|
|
|
function iterator(category, callback) {
|
|
|
|
categories.getRecentReplies(category.cid, 2, function (err, posts) {
|
|
|
|
categories.getRecentReplies(category.cid, category.numRecentTopics, function (err, posts) {
|
|
|
|
category.posts = posts;
|
|
|
|
category.posts = posts;
|
|
|
|
category.post_count = posts.length > 2 ? 2 : posts.length;
|
|
|
|
category.post_count = posts.length > 2 ? 2 : posts.length;
|
|
|
|
callback(null);
|
|
|
|
callback(null);
|
|
|
|