Skip to content

Commit

Permalink
fix: index should be cid
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Apr 17, 2024
1 parent de0176e commit 8410cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.io/posts/votes.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module.exports = function (SocketPosts) {
]);
const cidToAllowed = _.zip(uniqCids, canRead);
const checks = cids.map(
(cid, index) => isAdmin || isMod[index] || (cidToAllowed[index] && !!meta.config.votesArePublic)
(cid, index) => isAdmin || isMod[index] || (cidToAllowed[cid] && !!meta.config.votesArePublic)
);
return isArray ? checks : checks[0];
}
Expand Down

0 comments on commit 8410cec

Please sign in to comment.