mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
pass also user id on fireHook
pass also user id on fireHook as suggested by @barisusakli
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user