屏蔽内容完全不显示 & 添加一些默认屏蔽词

This commit is contained in:
2021-12-16 12:55:03 +08:00
parent f5f1136a1f
commit be55d3686a
2 changed files with 9 additions and 49 deletions

View File

@@ -723,9 +723,9 @@ class FlowItemRow extends PureComponent {
reply_status: 'done',
reply_error: null,
info: Object.assign({}, props.info, { variant: {} }),
hidden: window.config.block_words.some((word) =>
hidden: window.config.block_words_v2.some((word) =>
props.info.text.includes(word),
) || this.needFold,
) && !props.info.can_del || this.needFold,
attention:
props.attention_override === null ? false : props.attention_override,
cached: true, // default no display anything
@@ -908,7 +908,7 @@ class FlowItemRow extends PureComponent {
);
if (this.state.hidden) {
return (
return this.needFold && (
<div
className="flow-item-row flow-item-row-with-prompt"
onClick={(event) => {