From 007f7690fad96e9923bf0a73d85ab102ebc0addb Mon Sep 17 00:00:00 2001 From: ThibG Date: Thu, 18 Oct 2018 19:52:00 +0200 Subject: [PATCH] Fix fav/boosts hotkeys not working on detailed statuses (#9006) --- app/javascript/mastodon/features/status/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/status/index.js b/app/javascript/mastodon/features/status/index.js index 2cd17b805121b..b36d828650646 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 }));