about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-10-18 19:52:00 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-10-18 19:52:00 +0200
commit007f7690fad96e9923bf0a73d85ab102ebc0addb (patch)
tree6064b150785e15fbfe034a7d6c0d9487f180395e
parentf8c1b325410369806eb77a5c8d259971a87a6852 (diff)
Fix fav/boosts hotkeys not working on detailed statuses (#9006)
-rw-r--r--app/javascript/mastodon/features/status/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/status/index.js b/app/javascript/mastodon/features/status/index.js
index 2cd17b805..b36d82865 100644
--- a/app/javascript/mastodon/features/status/index.js
+++ b/app/javascript/mastodon/features/status/index.js
@@ -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 }));