Corrected logic that was bypassing the muted list.

This commit is contained in:
infinite-persistence 2021-09-03 23:28:09 +08:00
parent 91ef5456de
commit 04f3dfbb9f
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -324,11 +324,13 @@ const makeSelectFilteredComments = (comments: Array<Comment>, claimId?: string)
if (claimId) {
const claimIdIsMine = myClaims && myClaims.size > 0 && myClaims.has(claimId);
if (!claimIdIsMine) {
return !(
if (
personalBlockList.includes(comment.channel_url) ||
adminBlockList.includes(comment.channel_url) ||
moderatorBlockList.includes(comment.channel_url)
);
) {
return false;
}
}
}