Clicking on a collapsed toot just uncollapses it.

master
kibigo! 8 years ago
parent 6a50e73089
commit e60f27d649
  1. 5
      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) => {

Loading…
Cancel
Save