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); }