mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
filter:category.build_sidebars (custom sidebars in category view) is now deprecated
This commit is contained in:
@@ -71,12 +71,6 @@ var db = require('./database'),
|
||||
Categories.getModerators(category_id, next);
|
||||
}
|
||||
|
||||
function getSidebars(next) {
|
||||
plugins.fireHook('filter:category.build_sidebars', [], function(err, sidebars) {
|
||||
next(err, sidebars);
|
||||
});
|
||||
}
|
||||
|
||||
function getPageCount(next) {
|
||||
Categories.getPageCount(category_id, current_user, next);
|
||||
}
|
||||
@@ -86,7 +80,6 @@ var db = require('./database'),
|
||||
'topics': getTopics,
|
||||
'active_users': getActiveUsers,
|
||||
'moderators': getModerators,
|
||||
'sidebars': getSidebars,
|
||||
'pageCount': getPageCount
|
||||
}, function(err, results) {
|
||||
if(err) {
|
||||
@@ -106,7 +99,6 @@ var db = require('./database'),
|
||||
'nextStart': results.topics.nextStart,
|
||||
'pageCount': results.pageCount,
|
||||
'disableSocialButtons': meta.config.disableSocialButtons !== undefined ? parseInt(meta.config.disableSocialButtons, 10) !== 0 : false,
|
||||
'sidebars': results.sidebars
|
||||
};
|
||||
|
||||
callback(null, category);
|
||||
|
||||
Reference in New Issue
Block a user