diff options
-rw-r--r-- | app/javascript/mastodon/components/status.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 586661649..9410b086f 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -153,8 +153,9 @@ class StatusUnextended extends ImmutablePureComponent { } handleClick = () => { - const { status } = this.props; - this.context.router.history.push(`/statuses/${status.getIn(['reblog', 'id'], status.get('id'))}`); + const { status, isCollapsed } = this.props; + if (isCollapsed) this.handleCollapsedClick(); + else this.context.router.history.push(`/statuses/${status.getIn(['reblog', 'id'], status.get('id'))}`); } handleAccountClick = (e) => { |