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