From 0ca346b169f31d8095db520c84a84b2463e9f125 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 19 Jun 2020 23:00:16 -0400 Subject: [PATCH] Updated status to not have comments under it in timelines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - status to not have comments under it in timelines --- app/javascript/gabsocial/components/status.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/gabsocial/components/status.js b/app/javascript/gabsocial/components/status.js index e1746e7f..52cdceee 100644 --- a/app/javascript/gabsocial/components/status.js +++ b/app/javascript/gabsocial/components/status.js @@ -179,7 +179,7 @@ class Status extends ImmutablePureComponent { this.props.onFetchContext(this.props.status.get('id')) this._measureHeight(prevState.height !== this.state.height) } else { - if (commentCount > 0) { + if (commentCount > 0 && !this.props.commentsLimited) { this._measureHeight(prevState.height !== this.state.height) this.props.onFetchComments(this.props.status.get('id')) } @@ -592,7 +592,7 @@ class Status extends ImmutablePureComponent { } { - descendantsIds && !isChild && !isNotification && descendantsIds.size > 0 && + descendantsIds && !isChild && !isNotification && descendantsIds.size > 0 && !commentsLimited &&