|
|
|
@ -55,9 +55,9 @@ var path = require('path'),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function iterator(category, callback) {
|
|
|
|
|
categories.getRecentReplies(category.cid, category.numRecentTopics, function (err, posts) {
|
|
|
|
|
categories.getRecentReplies(category.cid, parseInt(category.numRecentTopics, 10), function (err, posts) {
|
|
|
|
|
category.posts = posts;
|
|
|
|
|
category.post_count = posts.length > 2 ? 2 : posts.length;
|
|
|
|
|
category.post_count = posts.length > 2 ? 2 : posts.length; // this was a hack to make metro work back in the day, post_count should just = length
|
|
|
|
|
callback(null);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|