mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
fixes crash introduced @1021615848e49da3434f00cfdb6fb79ab5990b47
This commit is contained in:
@@ -47,7 +47,7 @@ var path = require('path'),
|
||||
});
|
||||
|
||||
function iterator(category, callback) {
|
||||
categories.getRecentReplies(category.cid, 2, function (posts) {
|
||||
categories.getRecentReplies(category.cid, 2, function (err, posts) {
|
||||
category.posts = posts;
|
||||
category.post_count = posts.length > 2 ? 2 : posts.length;
|
||||
callback(null);
|
||||
|
||||
Reference in New Issue
Block a user