Verified Commit fb199027 authored by Haelwenn's avatar Haelwenn
Browse files

Add support for pleroma-style local_only

Related: pleroma!2289
Closes: #82
parent 5434acba
Pipeline #29084 passed with stage
in 5 minutes
......@@ -141,9 +141,6 @@ export function submitCompose(routerHistory) {
}
dispatch(submitComposeRequest());
if (getState().getIn(['compose', 'advanced_options', 'do_not_federate'])) {
status = status + ' 👁️';
}
api(getState).post('/api/v1/statuses', {
status,
content_type: getState().getIn(['compose', 'content_type']),
......@@ -153,6 +150,7 @@ export function submitCompose(routerHistory) {
spoiler_text: spoilerText,
visibility: getState().getIn(['compose', 'privacy']),
poll: getState().getIn(['compose', 'poll'], null),
local_only: getState().getIn(['compose', 'advanced_options', 'do_not_federate'])
}, {
headers: {
'Idempotency-Key': getState().getIn(['compose', 'idempotencyKey']),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment