Node.js based forum software built for the modern web
fixes vote buttons on infinite scroll and new posts
barisusakli9fbd535b79ac
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.jsindex 45ccdc2f75..04ef28370e 100644--- a/src/socket.io/posts.js+++ b/src/socket.io/posts.js@@ -38,7 +38,8 @@ SocketPosts.reply = function(socket, data, callback) {websockets.server.sockets.emit('event:new_post', {posts: [postData],- privileges: privileges+ privileges: privileges,+ 'reputation:disabled': parseInt(meta.config['reputation:disabled'], 10) === 1});module.parent.exports.emitTopicPostStats();diff --git a/src/socket.io/topics.js b/src/socket.io/topics.jsindex 67bd523d8a..b1af814351 100644--- a/src/socket.io/topics.js+++ b/src/socket.io/topics.js@@ -351,6 +351,9 @@ SocketTopics.loadMore = function(socket, data, callback) {},privileges: function(next) {privileges.topics.get(data.tid, socket.uid, next);+ },+ 'reputation:disabled': function(next) {+ next(null, parseInt(meta.config['reputation:disabled'], 10) === 1);}}, callback);});