feat: 彻底不显示已屏蔽的评论
This commit is contained in:
@@ -112,10 +112,10 @@ class Reply extends PureComponent {
|
|||||||
search_param,
|
search_param,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const author = info.name,
|
const author = info.name,
|
||||||
replyText = info.text,
|
replyText = info.text;
|
||||||
has_block_words = check_block(info);
|
|
||||||
this.color_picker = new ColorPicker();
|
this.color_picker = new ColorPicker();
|
||||||
return (
|
return (
|
||||||
|
!check_block(info) && (
|
||||||
<div
|
<div
|
||||||
className={'flow-reply box'}
|
className={'flow-reply box'}
|
||||||
style={
|
style={
|
||||||
@@ -180,9 +180,7 @@ class Reply extends PureComponent {
|
|||||||
)}
|
)}
|
||||||
<Time stamp={info.timestamp} short={!do_report} />
|
<Time stamp={info.timestamp} short={!do_report} />
|
||||||
|
|
||||||
{has_block_words && <span className="box-header-badge">已屏蔽</span>}
|
|
||||||
</div>
|
</div>
|
||||||
{!has_block_words && (
|
|
||||||
<div className="box-content">
|
<div className="box-content">
|
||||||
<HighlightedMarkdown
|
<HighlightedMarkdown
|
||||||
author={author}
|
author={author}
|
||||||
@@ -192,8 +190,8 @@ class Reply extends PureComponent {
|
|||||||
search_param={search_param}
|
search_param={search_param}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user