Fix status open hotkey

rebase/4.0.0rc2
Jeong Arm 2021-10-07 22:05:24 +09:00 committed by Claire
parent ebb4de7d3e
commit 0220065770
1 changed files with 1 additions and 0 deletions

View File

@ -425,6 +425,7 @@ class Status extends ImmutablePureComponent {
handleHotkeyOpen = () => {
let state = {...this.context.router.history.location.state};
state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1;
const status = this.props.status;
this.context.router.history.push(`/@${status.getIn(['account', 'acct'])}/${status.get('id')}`, state);
}