When replying to status with content warning, prefill content warning

This commit is contained in:
Eugen Rochko
2017-03-25 19:30:56 +01:00
parent ad1af951fb
commit a9303e7062
3 changed files with 9 additions and 2 deletions

View File

@ -79,7 +79,7 @@ export function submitCompose() {
media_ids: getState().getIn(['compose', 'media_attachments']).map(item => item.get('id')),
sensitive: getState().getIn(['compose', 'sensitive']),
spoiler_text: getState().getIn(['compose', 'spoiler_text'], ''),
visibility: getState().getIn(['compose', 'private']) ? 'private' : (getState().getIn(['compose', 'unlisted']) ? 'unlisted' : 'public')
visibility: getState().getIn(['compose', 'privacy'])
}).then(function (response) {
dispatch(submitComposeSuccess({ ...response.data }));