From e0298d66f8f807efe80cb01097b46e0ef33bd154 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Sun, 5 Nov 2017 15:05:12 -0800 Subject: Autocollapse boosts option --- app/javascript/glitch/components/status/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/javascript/glitch/components/status') diff --git a/app/javascript/glitch/components/status/index.js b/app/javascript/glitch/components/status/index.js index 9e758793c..6bd95b051 100644 --- a/app/javascript/glitch/components/status/index.js +++ b/app/javascript/glitch/components/status/index.js @@ -287,6 +287,7 @@ properly and our intersection observer is good to go. muted, id, intersectionObserverWrapper, + prepend, } = this.props; const autoCollapseSettings = settings.getIn(['collapsed', 'auto']); @@ -299,6 +300,9 @@ properly and our intersection observer is good to go. node.clientHeight > ( status.get('media_attachments').size && !muted ? 650 : 400 ) + ) || ( + autoCollapseSettings.get('reblogs') && + prepend === 'reblogged_by' ) || ( autoCollapseSettings.get('replies') && status.get('in_reply_to_id', null) !== null -- cgit