Node.js based forum software built for the modern web
added filter:category.get
Barış Soner Uşaklı429d7cbfa25f
diff --git a/src/categories.js b/src/categories.jsindex 22c7807c96..a4b6ce2092 100644--- a/src/categories.js+++ b/src/categories.js@@ -64,7 +64,9 @@ var async = require('async'),category.isIgnored = results.isIgnored[0];category.topic_row_size = 'col-md-9';- callback(null, category);+ plugins.fireHook('filter:category.get', {category: category, uid: data.uid}, function(err, data) {+ callback(err, data ? data.category : null);+ });});});};