[Glitch] Fix reblogging after refactor
Port 55705d8191
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2789/head
parent
643b1ef3e9
commit
cbf25634a9
|
@ -462,11 +462,11 @@ export function toggleReblog(statusId, skipModal = false) {
|
|||
const missing_description_setting = state.getIn(['local_settings', 'confirm_boost_missing_media_description']);
|
||||
const missing_description = status.get('media_attachments').some(item => !item.get('description'));
|
||||
if (missing_description_setting && missing_description && !status.get('reblogged')) {
|
||||
dispatch(openModal({ modalType: 'BOOST', modalProps: { status, onReblog: toggleReblogWithoutConfirmation, missingMediaDescription: true } }));
|
||||
dispatch(openModal({ modalType: 'BOOST', modalProps: { status, onReblog: (status, privacy) => dispatch(toggleReblogWithoutConfirmation(status, privacy)), missingMediaDescription: true } }));
|
||||
} else if (boostModal && !skipModal) {
|
||||
dispatch(openModal({ modalType: 'BOOST', modalProps: { status, onReblog: toggleReblogWithoutConfirmation } }));
|
||||
dispatch(openModal({ modalType: 'BOOST', modalProps: { status, onReblog: (status, privacy) => dispatch(toggleReblogWithoutConfirmation(status, privacy)) } }));
|
||||
} else {
|
||||
toggleReblogWithoutConfirmation(status);
|
||||
dispatch(toggleReblogWithoutConfirmation(status));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue