Browse Source

feat: 彻底不显示已屏蔽的评论

master
hole-thu 3 years ago
parent
commit
7b3eb9fbec
  1. 8
      src/Flows.js

8
src/Flows.js

@ -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} />
&nbsp; &nbsp;
{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>
)
); );
} }
} }

Loading…
Cancel
Save