adding uid to the topic hooks, so plugins can know the user that did the action

This commit is contained in:
psychobunny
2014-07-24 14:32:17 -04:00
parent fd78085c59
commit 788b16fa62
2 changed files with 9 additions and 6 deletions

View File

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