fixes vote buttons on infinite scroll and new posts

v1.18.x
barisusakli 11 years ago
parent 2bd99e2d16
commit 9fbd535b79

@ -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();

@ -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);
});

Loading…
Cancel
Save