When replying to status with content warning, prefill content warning

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

No files matched your search

@@ -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 }));