kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix composer always being in Markdown
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1526environments/review-fix-compos-7vpn2w/deployments/4045
rodzic
aabaaee8b8
commit
421cd3721d
|
@ -303,7 +303,6 @@ const submitCompose = (composeId: string, routerHistory?: History, force = false
|
||||||
(dispatch: AppDispatch, getState: () => RootState) => {
|
(dispatch: AppDispatch, getState: () => RootState) => {
|
||||||
if (!isLoggedIn(getState)) return;
|
if (!isLoggedIn(getState)) return;
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const { richText } = getFeatures(state.instance);
|
|
||||||
|
|
||||||
const compose = state.compose.get(composeId)!;
|
const compose = state.compose.get(composeId)!;
|
||||||
|
|
||||||
|
@ -312,8 +311,6 @@ const submitCompose = (composeId: string, routerHistory?: History, force = false
|
||||||
const statusId = compose.id;
|
const statusId = compose.id;
|
||||||
let to = compose.to;
|
let to = compose.to;
|
||||||
|
|
||||||
const contentType = richText ? 'text/markdown' : 'text/plain';
|
|
||||||
|
|
||||||
if (!validateSchedule(state, composeId)) {
|
if (!validateSchedule(state, composeId)) {
|
||||||
toast.error(messages.scheduleError);
|
toast.error(messages.scheduleError);
|
||||||
return;
|
return;
|
||||||
|
@ -352,7 +349,7 @@ const submitCompose = (composeId: string, routerHistory?: History, force = false
|
||||||
sensitive: compose.sensitive,
|
sensitive: compose.sensitive,
|
||||||
spoiler_text: compose.spoiler_text,
|
spoiler_text: compose.spoiler_text,
|
||||||
visibility: compose.privacy,
|
visibility: compose.privacy,
|
||||||
content_type: contentType,
|
content_type: compose.content_type,
|
||||||
poll: compose.poll,
|
poll: compose.poll,
|
||||||
scheduled_at: compose.schedule,
|
scheduled_at: compose.schedule,
|
||||||
to,
|
to,
|
||||||
|
|
Ładowanie…
Reference in New Issue