Skip to content

Node.js based forum software built for the modern web

add uid to hook

pichalite53bbc17f32c1
diff --git a/src/controllers/topics.js b/src/controllers/topics.js
index b738e996eb..45c91e1247 100644
--- a/src/controllers/topics.js
+++ b/src/controllers/topics.js
@@ -124,7 +124,7 @@ topicsController.get = function(req, res, callback) {
topics.modifyByPrivilege(topicData.posts, results.privileges);
- plugins.fireHook('filter:controllers.topic.get', topicData, next);
+ plugins.fireHook('filter:controllers.topic.get', {topicData: topicData, uid: req.uid}, next);
});
},
function (topicData, next) {