mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
adding uid to the topic hooks, so plugins can know the user that did the action
This commit is contained in:
@@ -269,7 +269,7 @@ SocketTopics.move = function(socket, data, callback) {
|
||||
},
|
||||
function(cid, next) {
|
||||
oldCid = cid;
|
||||
threadTools.move(tid, data.cid, next);
|
||||
threadTools.move(tid, data.cid, data.uid, next);
|
||||
}
|
||||
], function(err) {
|
||||
if(err) {
|
||||
@@ -305,7 +305,7 @@ SocketTopics.moveAll = function(socket, data, callback) {
|
||||
}
|
||||
|
||||
async.each(tids, function(tid, next) {
|
||||
threadTools.move(tid, data.cid, next);
|
||||
threadTools.move(tid, data.cid, data.uid, next);
|
||||
}, callback);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user