Skip to content

Node.js based forum software built for the modern web

adding uid to filter:category.topics.get

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