From e60f27d6490b21a75cf764a22a011c63ce8532a7 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Sun, 25 Jun 2017 16:09:32 -0700 Subject: [PATCH] Clicking on a collapsed toot just uncollapses it. --- app/javascript/mastodon/components/status.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 5866616497..9410b086f5 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) => {