Skip to content

Node.js based forum software built for the modern web

fix crash on push

barisusakli842a1f90cfa4
diff --git a/src/socket.io/modules.js b/src/socket.io/modules.js
index f2084c5578..95083f85bf 100644
--- a/src/socket.io/modules.js
+++ b/src/socket.io/modules.js
@@ -62,7 +62,7 @@ SocketModules.composer.push = function(socket, pid, callback) {
topics.getTopicTags(postData.tid, next);
},
isMain: function(next) {
- postTools.isMain(pid, next);
+ postTools.isMain(pid, postData.tid, next);
}
}, function(err, results) {
if(err) {