Compose form in the UI now has public/private toggle instead of public/unlisted
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user