mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
display_moderator_tools is already returned
when new posts were loaded, we were making a socket call for each post to check if the post is editable, but this data is already returned in display_moderator_tools when posts are loaded.
This commit is contained in:
@@ -219,16 +219,6 @@ function deleteOrRestore(command, socket, data, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
SocketPosts.getPrivileges = function(socket, pid, callback) {
|
||||
postTools.privileges(pid, socket.uid, function(err, privileges) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
}
|
||||
privileges.pid = parseInt(pid, 10);
|
||||
callback(null, privileges);
|
||||
});
|
||||
};
|
||||
|
||||
SocketPosts.getFavouritedUsers = function(socket, pid, callback) {
|
||||
|
||||
favourites.getFavouritedUidsByPids([pid], function(err, data) {
|
||||
|
||||
Reference in New Issue
Block a user