]> cat aescling's git repositories - mastodon.git/commitdiff
Fix fav/boosts hotkeys not working on detailed statuses (#9006)
authorThibG <thib@sitedethib.com>
Thu, 18 Oct 2018 17:52:00 +0000 (19:52 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 18 Oct 2018 17:52:00 +0000 (19:52 +0200)
app/javascript/mastodon/features/status/index.js

index 2cd17b805121bb5dd9f351feee908635262bccb6..b36d828650646c3d0c8f3fc7a281b8a98def9052 100644 (file)
@@ -181,7 +181,7 @@ class Status extends ImmutablePureComponent {
     if (status.get('reblogged')) {
       this.props.dispatch(unreblog(status));
     } else {
-      if (e.shiftKey || !boostModal) {
+      if ((e && e.shiftKey) || !boostModal) {
         this.handleModalReblog(status);
       } else {
         this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog }));