]> cat aescling's git repositories - mastodon.git/commitdiff
Fix boost to original audience not working on mobile (#11371)
authorThibG <thib@sitedethib.com>
Sun, 21 Jul 2019 16:11:09 +0000 (18:11 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 21 Jul 2019 16:11:09 +0000 (18:11 +0200)
app/javascript/mastodon/containers/status_container.js

index 86324b846811df4cd8a4b6b1a32deebbf301c552..fa58589a6144f6d991560e294895e4fdc2e7b7f5 100644 (file)
@@ -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 }));