From: Jeong Arm Date: Thu, 7 Oct 2021 13:05:24 +0000 (+0900) Subject: Fix status open hotkey X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=022006577027ca040f4411489821f2e3311f0db6;p=mastodon.git Fix status open hotkey --- diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js index 72d59f55a..02ff9ab28 100644 --- a/app/javascript/flavours/glitch/components/status.js +++ b/app/javascript/flavours/glitch/components/status.js @@ -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); }