From 421cd3721dfaa16f1c5f088c5e22f75ca17882fd Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 24 Sep 2023 13:10:34 -0500 Subject: [PATCH] Fix composer always being in Markdown Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1526 --- src/actions/compose.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/actions/compose.ts b/src/actions/compose.ts index c28618e11..85b2d4c5d 100644 --- a/src/actions/compose.ts +++ b/src/actions/compose.ts @@ -303,7 +303,6 @@ 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)!; @@ -312,8 +311,6 @@ 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; @@ -352,7 +349,7 @@ const submitCompose = (composeId: string, routerHistory?: History, force = false sensitive: compose.sensitive, spoiler_text: compose.spoiler_text, visibility: compose.privacy, - content_type: contentType, + content_type: compose.content_type, poll: compose.poll, scheduled_at: compose.schedule, to,