From 66d7d3da38be8842b69535fd46a094bf059fe255 Mon Sep 17 00:00:00 2001 From: hole-thu Date: Sat, 28 May 2022 16:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E5=B1=8F=E8=94=BD=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E5=B8=90=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Config.js | 12 ++++++++---- src/Flows.js | 17 ++++++++++------- 2 files changed, 18 insertions(+), 11 deletions(-) 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