mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
add uid to hook
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user