fixed other post

v1.18.x
barisusakli 10 years ago
parent b7bba928a4
commit 142ffc2920

@ -53,7 +53,7 @@ SocketTopics.post = function(socket, data, callback) {
for(var i=0; i<uids.length; ++i) { for(var i=0; i<uids.length; ++i) {
if (parseInt(uids[i], 10) !== socket.uid) { if (parseInt(uids[i], 10) !== socket.uid) {
websockets.in('uid_' + uids[i]).emit('event:new_post', {posts: result.postData}); websockets.in('uid_' + uids[i]).emit('event:new_post', {posts: [result.postData]});
websockets.in('uid_' + uids[i]).emit('event:new_topic', result.topicData); websockets.in('uid_' + uids[i]).emit('event:new_topic', result.topicData);
} }
} }

Loading…
Cancel
Save