This commit is contained in:
Julian Lam
2018-06-08 16:01:11 -04:00
parent a37dc1856f
commit cb3b2bd27b
10 changed files with 42 additions and 9 deletions

View File

@@ -165,8 +165,8 @@ SocketPosts.getReplies = function (socket, pid, callback) {
topics.addPostData(results.posts, socket.uid, next);
},
function (postData, next) {
postData.forEach(function (postData) {
posts.modifyPostByPrivilege(postData, postPrivileges.isAdminOrMod);
postData.forEach(function (postData, index) {
posts.modifyPostByPrivilege(postData, postPrivileges[index]);
});
next(null, postData);
},