Skip to content

Node.js based forum software built for the modern web

fixed other post

barisusakli142ffc29206e
diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js
index 909c413043..ffeab1d719 100644
--- a/src/socket.io/topics.js
+++ b/src/socket.io/topics.js
@@ -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);
}
}