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