Node.js based forum software built for the modern web
pass also user id on fireHook
TheBronxe3cf528b57a2
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.jsindex 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, callbafilter.post.favouritefilter.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);}