|
|
@ -36,9 +36,10 @@ module.exports = function(Categories) {
|
|
|
|
topics[i].index = data.start + i;
|
|
|
|
topics[i].index = data.start + i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
plugins.fireHook('filter:category.topics.get', {topics: topics, uid: data.uid}, function(err, params) {
|
|
|
|
plugins.fireHook('filter:category.topics.get', {topics: topics, uid: data.uid}, next);
|
|
|
|
next(null, params.topics);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
function(results, next) {
|
|
|
|
|
|
|
|
next(null, results.topics);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
], next);
|
|
|
|
], next);
|
|
|
|
}
|
|
|
|
}
|
|
|
|