Disable account linking on collapsed toots too

lolsob-rspec
kibigo! 2017-06-26 15:41:09 -07:00
parent ebd299413c
commit 1ccb8a2d09
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ class StatusUnextended extends ImmutablePureComponent {
if (e.button === 0) {
const id = Number(e.currentTarget.getAttribute('data-id'));
e.preventDefault();
this.context.router.history.push(`/accounts/${id}`);
if (this.state.isCollapsed) this.handleCollapsedClick();
else this.context.router.history.push(`/accounts/${id}`);
}
}