diff --git a/app/soapbox/actions/compose.ts b/app/soapbox/actions/compose.ts index 38efc838e..2ac11fc5b 100644 --- a/app/soapbox/actions/compose.ts +++ b/app/soapbox/actions/compose.ts @@ -238,6 +238,7 @@ const submitCompose = (composeId: string, routerHistory?: History, force = false (dispatch: AppDispatch, getState: () => RootState) => { if (!isLoggedIn(getState)) return; const state = getState(); + const { richText } = getFeatures(state.instance); const compose = state.compose.get(composeId)!; @@ -246,6 +247,8 @@ const submitCompose = (composeId: string, routerHistory?: History, force = false const statusId = compose.id; let to = compose.to; + const contentType = richText ? 'text/markdown' : 'text/plain'; + if (!validateSchedule(state, composeId)) { toast.error(messages.scheduleError); return; @@ -284,7 +287,7 @@ const submitCompose = (composeId: string, routerHistory?: History, force = false sensitive: compose.sensitive, spoiler_text: compose.spoiler_text, visibility: compose.privacy, - content_type: compose.content_type, + content_type: contentType, poll: compose.poll, scheduled_at: compose.schedule, to, diff --git a/app/soapbox/components/autosuggest-textarea.tsx b/app/soapbox/components/autosuggest-textarea.tsx index 620f8c88c..e43f49464 100644 --- a/app/soapbox/components/autosuggest-textarea.tsx +++ b/app/soapbox/components/autosuggest-textarea.tsx @@ -235,14 +235,14 @@ class AutosuggestTextarea extends ImmutablePureComponent } return [ -
+