mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fixed other post
This commit is contained in:
@@ -53,7 +53,7 @@ SocketTopics.post = function(socket, data, callback) {
|
||||
|
||||
for(var i=0; i<uids.length; ++i) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user