mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +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.favourite
|
||||||
filter.post.unfavourite
|
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) {
|
if (err) {
|
||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user