mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 06:46:02 +02:00
fixes vote buttons on infinite scroll and new posts
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user