From f8e90473599b20aa83680de683e55841c22d4147 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Fri, 3 Sep 2021 23:33:04 +0800 Subject: [PATCH] Allow moderators to perform Timeout as well. --- ui/modal/modalBlockChannel/view.jsx | 2 +- ui/redux/selectors/comments.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/modal/modalBlockChannel/view.jsx b/ui/modal/modalBlockChannel/view.jsx index 454f1a370..84871fece 100644 --- a/ui/modal/modalBlockChannel/view.jsx +++ b/ui/modal/modalBlockChannel/view.jsx @@ -72,7 +72,7 @@ export default function ModalBlockChannel(props: Props) { const [timeoutSec, setTimeoutSec] = React.useState(-1); const isPersonalTheOnlyTab = !activeChannelIsModerator && !activeChannelIsAdmin; - const isTimeoutAvail = contentClaim && contentClaim.is_my_output; + const isTimeoutAvail = (contentClaim && contentClaim.is_my_output) || activeChannelIsModerator; const blockButtonDisabled = blockType === BLOCK.TIMEOUT && timeoutSec < 1; // ************************************************************************** diff --git a/ui/redux/selectors/comments.js b/ui/redux/selectors/comments.js index baf450150..7094c847c 100644 --- a/ui/redux/selectors/comments.js +++ b/ui/redux/selectors/comments.js @@ -324,11 +324,7 @@ const makeSelectFilteredComments = (comments: Array, claimId?: string) if (claimId) { const claimIdIsMine = myClaims && myClaims.size > 0 && myClaims.has(claimId); if (!claimIdIsMine) { - if ( - personalBlockList.includes(comment.channel_url) || - adminBlockList.includes(comment.channel_url) || - moderatorBlockList.includes(comment.channel_url) - ) { + if (personalBlockList.includes(comment.channel_url) || adminBlockList.includes(comment.channel_url)) { return false; } }