New moderation tools: block & mute #5572

Merged
neb-b merged 9 commits from block into master 2021-03-03 19:50:17 +01:00
3 changed files with 5 additions and 5 deletions
Showing only changes of commit 7dba05a983 - Show all commits

View file

@ -329,7 +329,6 @@ const ClaimPreview = forwardRef<any, {}>((props: Props, ref: any) => {
{!isChannelUri && signingChannel && (
<div className="claim-preview__channel-staked">
<ChannelThumbnail uri={signingChannel.permanent_url} />
{/* <ChannelStakedIndicator uri={signingChannel.permanent_url} inline /> */}
</div>
)}

View file

@ -107,7 +107,7 @@ function CommentMenuList(props: Props) {
{__('Block')}
</div>
{activeChannelIsCreator && (
<span className="comment__menu-help">Prevent this channel from interacting with you.</span>
<span className="comment__menu-help">{__('Prevent this channel from interacting with you.')}</span>
)}
</MenuItem>
)}
@ -118,7 +118,9 @@ function CommentMenuList(props: Props) {
<Icon aria-hidden icon={ICONS.MUTE} />
{__('Mute')}
</div>
{activeChannelIsCreator && <span className="comment__menu-help">Hide this channel for you only.</span>}
{activeChannelIsCreator && (
<span className="comment__menu-help">{__('Hide this channel for you only.')}</span>
)}
</MenuItem>
)}

View file

@ -544,7 +544,6 @@ export function doFetchModBlockedList() {
const blockListForChannel = channelBlockListData && channelBlockListData.blocked_channels;
if (blockListForChannel) {
blockListForChannel.forEach((blockedChannel) => {
// REMOVE THIS
if (blockedChannel.blocked_channel_name) {
const channelUri = buildURI({
channelName: blockedChannel.blocked_channel_name,
@ -568,7 +567,7 @@ export function doFetchModBlockedList() {
},
});
})
.catch((err) => {
.catch(() => {
dispatch({
type: ACTIONS.COMMENT_MODERATION_BLOCK_LIST_FAILED,
});