]> cat aescling's git repositories - mastodon.git/commitdiff
Fix status open hotkey
authorJeong Arm <kjwonmail@gmail.com>
Thu, 7 Oct 2021 13:05:24 +0000 (22:05 +0900)
committerClaire <claire.github-309c@sitedethib.com>
Thu, 7 Oct 2021 21:40:35 +0000 (23:40 +0200)
app/javascript/flavours/glitch/components/status.js

index 72d59f55ac1d530e1aaf6b6bccca11b3e8d7f6da..02ff9ab28e1baf43eeae093e9b39eb0e05c84215 100644 (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);
   }