about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-21 18:11:09 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-07-21 18:11:09 +0200
commit59fd622adc18cb094146f7cda1025782d505404e (patch)
tree876f8ee7cbbb3e5d1b7829f472b604c5300bc371 /app/javascript
parent7de8c51873b51d8450f7a6597a43d454964d0407 (diff)
Fix boost to original audience not working on mobile (#11371)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/containers/status_container.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/containers/status_container.js b/app/javascript/mastodon/containers/status_container.js
index 86324b846..fa58589a6 100644
--- a/app/javascript/mastodon/containers/status_container.js
+++ b/app/javascript/mastodon/containers/status_container.js
@@ -77,7 +77,7 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
   },
 
   onReblog (status, e) {
-    if (e.shiftKey || !boostModal) {
+    if ((e && e.shiftKey) || !boostModal) {
       this.onModalReblog(status);
     } else {
       dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog }));