Compose form in the UI now has public/private toggle instead of public/unlisted
This commit is contained in:
parent
b302b9202b
commit
de9b6e3a6a
5 changed files with 10 additions and 10 deletions
|
@ -67,14 +67,14 @@ export function submitCompose() {
|
|||
in_reply_to_id: getState().getIn(['compose', 'in_reply_to'], null),
|
||||
media_ids: getState().getIn(['compose', 'media_attachments']).map(item => item.get('id')),
|
||||
sensitive: getState().getIn(['compose', 'sensitive']),
|
||||
visibility: getState().getIn(['compose', 'unlisted']) ? 'unlisted' : 'public'
|
||||
visibility: getState().getIn(['compose', 'private']) ? 'private' : 'public'
|
||||
}).then(function (response) {
|
||||
dispatch(submitComposeSuccess({ ...response.data }));
|
||||
|
||||
// To make the app more responsive, immediately get the status into the columns
|
||||
dispatch(updateTimeline('home', { ...response.data }));
|
||||
|
||||
if (response.data.in_reply_to_id === null && !getState().getIn(['compose', 'unlisted'])) {
|
||||
if (response.data.in_reply_to_id === null && !getState().getIn(['compose', 'private'])) {
|
||||
dispatch(updateTimeline('public', { ...response.data }));
|
||||
}
|
||||
}).catch(function (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue