|
|
@ -27,7 +27,7 @@ categoriesController.recent = function(req, res, next) {
|
|
|
|
|
|
|
|
|
|
|
|
data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;
|
|
|
|
data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;
|
|
|
|
|
|
|
|
|
|
|
|
plugins.fireHook('filter:category.get', {category: data, uid: uid}, function(err, data) {
|
|
|
|
plugins.fireHook('filter:category.get', {category: {topics: data}, uid: uid}, function(err, data) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return next(err);
|
|
|
|
return next(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -78,7 +78,7 @@ categoriesController.unread = function(req, res, next) {
|
|
|
|
return next(err);
|
|
|
|
return next(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
plugins.fireHook('filter:category.get', {category: data, uid: uid}, function(err, data) {
|
|
|
|
plugins.fireHook('filter:category.get', {category: {topics: data}, uid: uid}, function(err, data) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return next(err);
|
|
|
|
return next(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|