sforkowany z mirror/soapbox
Fix normal reblogging
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>profile-avatar-switcher
rodzic
c5e34de79a
commit
67006fdc34
|
@ -101,7 +101,7 @@ const mapDispatchToProps = (dispatch, { intl }) => {
|
||||||
onReblog(status, e) {
|
onReblog(status, e) {
|
||||||
dispatch((_, getState) => {
|
dispatch((_, getState) => {
|
||||||
const boostModal = getSettings(getState()).get('boostModal');
|
const boostModal = getSettings(getState()).get('boostModal');
|
||||||
if (e.shiftKey || !boostModal) {
|
if ((e && e.shiftKey) || !boostModal) {
|
||||||
onModalReblog(status);
|
onModalReblog(status);
|
||||||
} else {
|
} else {
|
||||||
dispatch(openModal('BOOST', { status, onReblog: onModalReblog }));
|
dispatch(openModal('BOOST', { status, onReblog: onModalReblog }));
|
||||||
|
|
Ładowanie…
Reference in New Issue