From b604a4961cef76eb0acbecb4fae897d0cfcf3b6c Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 24 Jul 2014 16:17:38 -0400 Subject: [PATCH] thanks @barisusakli --- src/socket.io/topics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); });