From 53bbc17f32c1dd41977e682e6acd50991814e974 Mon Sep 17 00:00:00 2001 From: pichalite Date: Thu, 21 Jan 2016 04:10:38 +0000 Subject: [PATCH] add uid to hook --- src/controllers/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {