]> cat aescling's git repositories - mastodon.git/commitdiff
Fix media open hotkey (#12546)
authorJeong Arm <kjwonmail@gmail.com>
Wed, 4 Dec 2019 23:50:51 +0000 (08:50 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 4 Dec 2019 23:50:51 +0000 (00:50 +0100)
app/javascript/mastodon/components/status.js
app/javascript/mastodon/features/status/index.js

index 3176bda8996f424ef5ec0d304c5ebf6d3c8aa655..e120278a05bf9f82cb5cae855a34f4c508585192 100644 (file)
@@ -215,7 +215,8 @@ class Status extends ImmutablePureComponent {
   }
 
   handleHotkeyOpenMedia = e => {
-    const { status, onOpenMedia, onOpenVideo } = this.props;
+    const { onOpenMedia, onOpenVideo } = this.props;
+    const status = this._properStatus();
 
     e.preventDefault();
 
index ab468b5e8debf58f6c724d975489a7c051b1de72..6b18f34d18fea0a2cd9e2e12b01a381b476a9e34 100644 (file)
@@ -282,7 +282,7 @@ class Status extends ImmutablePureComponent {
   }
 
   handleHotkeyOpenMedia = e => {
-    const { status } = this.props;
+    const status = this._properStatus();
 
     e.preventDefault();