From e3cf528b57a260745b1796cbf69d7532642e54e9 Mon Sep 17 00:00:00 2001 From: TheBronx Date: Sun, 18 Jan 2015 19:09:26 +0100 Subject: [PATCH] pass also user id on fireHook pass also user id on fireHook as suggested by @barisusakli --- src/socket.io/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index 7d4ae8ea37..a040493942 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -176,7 +176,7 @@ function favouriteCommand(socket, command, eventName, notification, data, callba filter.post.favourite filter.post.unfavourite */ - plugins.fireHook('filter:post.' + command, data, function(err, filteredData) { + plugins.fireHook('filter:post.' + command, {data: data, uid: socket.uid}, function(err, filteredData) { if (err) { return callback(err); }