Allow moderators to perform Timeout as well. #7015

Merged
infinite-persistence merged 2 commits from ip/block.timeout.master into master 2021-09-03 17:54:01 +02:00
Showing only changes of commit 04f3dfbb9f - Show all commits

View file

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