From a93e09ed9da967e1793d44e7b56aca05c4a498cc Mon Sep 17 00:00:00 2001 From: Z Date: Sun, 12 Jul 2020 10:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=A9=E7=9F=AD=E5=8A=A0=E8=BD=BD=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=BB=B6=E6=97=B6=EF=BC=8C=E5=AF=B9=E6=89=80=E6=9C=89?= =?UTF-8?q?=E5=98=9F=E6=96=87=E5=8A=A0=E8=BD=BD=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/mastodon/components/status.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index c190c0b4e..bab33953a 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -122,7 +122,7 @@ class Status extends ImmutablePureComponent { _isMounted = false; componentDidMount () { this._isMounted = true; - setTimeout(this.loadContext, Math.ceil(Math.random() * 4000 + 1000)); + setTimeout(this.loadContext, Math.ceil(Math.random() * 2000 + 500)); } static getDerivedStateFromProps(nextProps, prevState) { @@ -165,7 +165,7 @@ class Status extends ImmutablePureComponent { } const { status } = this.props; const r_status = status.get('reblog') || status; - if(this.props.showThread && this.state.noStartPD && (r_status.get('replies_count') || r_status.get('in_reply_to_id') || r_status.get('visibility') == 'private')) { + if(this.props.showThread && this.state.noStartPD) { this.setState({noStartPD: false}); this.props.onPreview(r_status.get('id')); }