diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-06-25 16:09:32 -0700 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-06-25 16:09:32 -0700 |
commit | e60f27d6490b21a75cf764a22a011c63ce8532a7 (patch) | |
tree | ac7e82fe44dcecd5a24659ef74d96285ac9582a7 /app | |
parent | 6a50e730896f599f16961c118126b805e26e2f53 (diff) |
Clicking on a collapsed toot just uncollapses it.
Diffstat (limited to 'app')
-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) => { |