From 734d681fe8b8de34de1b9326228a7e3988ba406a Mon Sep 17 00:00:00 2001 From: kibigo! Date: Sun, 25 Jun 2017 19:19:45 -0700 Subject: [PATCH] Expand toot by clicking on body [fixed!] --- app/javascript/mastodon/components/status.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index aac3dcee39..d2ede6b2a2 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -153,7 +153,8 @@ class StatusUnextended extends ImmutablePureComponent { } handleClick = () => { - const { status, isCollapsed } = this.props; + const { status } = this.props; + const { isCollapsed } = this.state; if (isCollapsed) this.handleCollapsedClick(); else this.context.router.history.push(`/statuses/${status.getIn(['reblog', 'id'], status.get('id'))}`); }