diff --git a/app/soapbox/actions/compose.js b/app/soapbox/actions/compose.js index 457089f7a..f733ef3d4 100644 --- a/app/soapbox/actions/compose.js +++ b/app/soapbox/actions/compose.js @@ -98,7 +98,7 @@ export const ensureComposeIsVisible = (getState, routerHistory) => { } }; -export function setComposeToStatus(status, raw_text, spoiler_text, content_type) { +export function setComposeToStatus(status, rawText, spoilerText, contentType) { return (dispatch, getState) => { const { instance } = getState(); const { explicitAddressing } = getFeatures(instance); @@ -106,10 +106,10 @@ export function setComposeToStatus(status, raw_text, spoiler_text, content_type) dispatch({ type: COMPOSE_SET_STATUS, status, - raw_text, + rawText, explicitAddressing, - spoiler_text, - content_type, + spoilerText, + contentType, v: parseVersion(instance.version), }); }; diff --git a/app/soapbox/reducers/compose.js b/app/soapbox/reducers/compose.js index d0521ae0a..9d8f5bb62 100644 --- a/app/soapbox/reducers/compose.js +++ b/app/soapbox/reducers/compose.js @@ -430,14 +430,14 @@ export default function compose(state = initialState, action) { case COMPOSE_SET_STATUS: return state.withMutations(map => { map.set('id', action.status.get('id')); - map.set('text', action.raw_text || unescapeHTML(expandMentions(action.status))); + map.set('text', action.rawText || unescapeHTML(expandMentions(action.status))); map.set('to', action.explicitAddressing ? getExplicitMentions(action.status.get('account', 'id'), action.status) : ImmutableOrderedSet()); map.set('in_reply_to', action.status.get('in_reply_to_id')); map.set('privacy', action.status.get('visibility')); map.set('focusDate', new Date()); map.set('caretPosition', null); map.set('idempotencyKey', uuid()); - map.set('content_type', action.content_type || 'text/plain'); + map.set('content_type', action.contentType || 'text/plain'); if (action.v?.software === PLEROMA && hasIntegerMediaIds(action.status)) { map.set('media_attachments', ImmutableList());