diff --git a/src/Config.js b/src/Config.js index afded07..b6d420d 100644 --- a/src/Config.js +++ b/src/Config.js @@ -29,7 +29,8 @@ const DEFAULT_CONFIG = { pressure: false, easter_egg: true, color_scheme: 'default', - block_words_v3: ['蜘蛛'], + block_tmp: false, + block_words_v3: ['🕷️'], whitelist_cw: [], ipfs_gateway_list: [ 'https://.ipfs.dweb.link/', @@ -373,10 +374,13 @@ export class ConfigUI extends PureComponent { callback={this.save_changes_bound} />
- {/* */} + id="block_tmp" + name="屏蔽临时帐号" + description="屏蔽所有临时帐号的发言" + /> +
info.text.includes(word))) && + !info.can_del + ); +} + function load_single_meta(show_sidebar, token) { return async (pid, replace = false) => { let color_picker = new ColorPicker(); @@ -100,9 +108,7 @@ class Reply extends PureComponent { } = this.props; const author = info.name, replyText = info.text, - has_block_words = - window.config.block_words_v3.some((word) => info.text.includes(word)) && - !info.can_del; + has_block_words = check_block(info); this.color_picker = new ColorPicker(); return (
- props.info.text.includes(word), - ) && !props.info.can_del; + this.has_block_words = check_block(props.info); this.color_picker = new ColorPicker(); this.state = { replies: props.info.comments