diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js index 8f8dbe6df4..274950d455 100644 --- a/src/socket.io/topics.js +++ b/src/socket.io/topics.js @@ -269,7 +269,7 @@ SocketTopics.move = function(socket, data, callback) { }, function(cid, next) { oldCid = cid; - threadTools.move(tid, data.cid, data.uid, next); + threadTools.move(tid, data.cid, socket.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, data.uid, next); + threadTools.move(tid, data.cid, socket.uid, next); }, callback); }); });