Skip to content

Node.js based forum software built for the modern web

filter:category.topics.get

psychobunnyabe887f55739
diff --git a/src/categories/topics.js b/src/categories/topics.js
index 358e607187..c7572fae47 100644
--- a/src/categories/topics.js
+++ b/src/categories/topics.js
@@ -36,9 +36,11 @@ module.exports = function(Categories) {
topics[i].index = indices[topics[i].tid];
}
- next(null, {
- topics: topics,
- nextStart: data.stop + 1
+ plugins.fireHook('filter:category.topics.get', topics, function(err, topics) {
+ next(null, {
+ topics: topics,
+ nextStart: data.stop + 1
+ });
});
}
], callback);