mirror of https://github.com/mastodon/mastodon
Fix reblogging after refactor (#31105)
This commit is contained in:
parent
9cb9427133
commit
55705d8191
|
@ -460,9 +460,9 @@ export function toggleReblog(statusId, skipModal = false) {
|
||||||
status = status.set('account', state.accounts.get(status.get('account')));
|
status = status.set('account', state.accounts.get(status.get('account')));
|
||||||
|
|
||||||
if (boostModal && !skipModal) {
|
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…
Reference in New Issue