parent
b94ffe6699
commit
90155481d5
1 changed files with 2 additions and 1 deletions
|
@ -177,6 +177,7 @@ export function submitCompose(routerHistory) {
|
||||||
const media = getState().getIn(['compose', 'media_attachments']);
|
const media = getState().getIn(['compose', 'media_attachments']);
|
||||||
const statusId = getState().getIn(['compose', 'id'], null);
|
const statusId = getState().getIn(['compose', 'id'], null);
|
||||||
const circleId = getState().getIn(['compose', 'circle_id'], null);
|
const circleId = getState().getIn(['compose', 'circle_id'], null);
|
||||||
|
const privacy = getState().getIn(['compose', 'privacy']);
|
||||||
|
|
||||||
if ((!status || !status.length) && media.size === 0) {
|
if ((!status || !status.length) && media.size === 0) {
|
||||||
return;
|
return;
|
||||||
|
@ -256,7 +257,7 @@ export function submitCompose(routerHistory) {
|
||||||
insertIfOnline(`account:${response.data.account.id}`);
|
insertIfOnline(`account:${response.data.account.id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusId === null && circleId !== null && circleId !== 0) {
|
if (statusId === null && privacy === 'circle' && circleId !== null && circleId !== 0) {
|
||||||
dispatch(submitComposeWithCircleSuccess({ ...response.data }, circleId));
|
dispatch(submitComposeWithCircleSuccess({ ...response.data }, circleId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue