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

Loading…
Cancel
Save