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