diff options
author | ThibG <thib@sitedethib.com> | 2018-10-18 19:52:00 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-18 19:52:00 +0200 |
commit | 007f7690fad96e9923bf0a73d85ab102ebc0addb (patch) | |
tree | 6064b150785e15fbfe034a7d6c0d9487f180395e /app/javascript | |
parent | f8c1b325410369806eb77a5c8d259971a87a6852 (diff) |
Fix fav/boosts hotkeys not working on detailed statuses (#9006)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/features/status/index.js | 2 |
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 })); |