Skip to content

Node.js based forum software built for the modern web

getPidIndex socket call

barisusakli347fc0537636
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js
index 3315bf2f5a..5326fc09de 100644
--- a/src/socket.io/posts.js
+++ b/src/socket.io/posts.js
@@ -367,4 +367,8 @@ SocketPosts.getCategory = function(socket, pid, callback) {
posts.getCidByPid(pid, callback);
};
+SocketPosts.getPidIndex = function(socket, pid, callback) {
+ posts.getPidIndex(pid, socket.uid, callback);
+};
+
module.exports = SocketPosts;