Compose form in the UI now has public/private toggle instead of public/unlisted

This commit is contained in:
Eugen Rochko 2016-12-23 00:38:16 +01:00
parent b302b9202b
commit de9b6e3a6a
5 changed files with 10 additions and 10 deletions

View file

@ -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) {