[Glitch] Fix boost dialog visibility selection not being taken into account
Port 01a757d306276213276580a31ecbeffa21d88076 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
66bc8d5717
commit
a9cef5c324
@ -437,12 +437,12 @@ export function unpinFail(status, error) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleReblogWithoutConfirmation(status, privacy) {
|
function toggleReblogWithoutConfirmation(status, visibility) {
|
||||||
return (dispatch) => {
|
return (dispatch) => {
|
||||||
if (status.get('reblogged')) {
|
if (status.get('reblogged')) {
|
||||||
dispatch(unreblog({ statusId: status.get('id') }));
|
dispatch(unreblog({ statusId: status.get('id') }));
|
||||||
} else {
|
} else {
|
||||||
dispatch(reblog({ statusId: status.get('id'), privacy }));
|
dispatch(reblog({ statusId: status.get('id'), visibility }));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user