Skip to content

Commit

Permalink
Allow moderators to perform Timeout as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
infinite-persistence committed Sep 3, 2021
1 parent 04f3dfb commit f8e9047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/modal/modalBlockChannel/view.jsx
Expand Up @@ -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;

// **************************************************************************
Expand Down
6 changes: 1 addition & 5 deletions ui/redux/selectors/comments.js
Expand Up @@ -324,11 +324,7 @@ const makeSelectFilteredComments = (comments: Array<Comment>, 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;
}
}
Expand Down

0 comments on commit f8e9047

Please sign in to comment.