Fix reblogging after refactor (#31105)

pull/2789/head
Claire 2024-07-22 21:30:06 +02:00 committed by GitHub
parent 9cb9427133
commit 55705d8191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -460,9 +460,9 @@ export function toggleReblog(statusId, skipModal = false) {
status = status.set('account', state.accounts.get(status.get('account')));
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));
}
};
}