diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 33e4a25e4..a200570a1 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -176,7 +176,7 @@ class Status extends ImmutablePureComponent { else if (settings.getIn(['collapsed', 'auto', 'all'])) this.collapse(); else if (settings.getIn(['collapsed', 'auto', 'lengthy']) && node.clientHeight > 400) this.collapse(); else if (settings.getIn(['collapsed', 'auto', 'replies']) && status.get('in_reply_to_id', null) !== null) this.collapse(); - else if (settings.getIn(['collapsed', 'auto', 'media']) && status.get('media_attachments').size > 0) this.collapse(); + else if (settings.getIn(['collapsed', 'auto', 'media']) && !(status.get('spoiler_text').length > 0) && status.get('media_attachments').size > 0) this.collapse(); if (!this.props.intersectionObserverWrapper) { // TODO: enable IntersectionObserver optimization for notification statuses. @@ -268,7 +268,7 @@ class Status extends ImmutablePureComponent { render () { let media = null; - let mediaType = null; + let mediaIcon = null; let statusAvatar; // Exclude intersectionObserverWrapper from `other` variable @@ -297,10 +297,10 @@ class Status extends ImmutablePureComponent { } else if (status.getIn(['media_attachments', 0, 'type']) === 'video') { media = ; - mediaType =