mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-20 06:33:05 -05:00
[Glitch] Fix reblogging after refactor
Port 55705d8191f31c1089095956fb4124f7505b4bd7 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
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_setting = state.getIn(['local_settings', 'confirm_boost_missing_media_description']);
|
||||||
const missing_description = status.get('media_attachments').some(item => !item.get('description'));
|
const missing_description = status.get('media_attachments').some(item => !item.get('description'));
|
||||||
if (missing_description_setting && missing_description && !status.get('reblogged')) {
|
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) {
|
} 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 {
|
} else {
|
||||||
toggleReblogWithoutConfirmation(status);
|
dispatch(toggleReblogWithoutConfirmation(status));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user