diff --git a/packages/pl-fe/src/features/compose/components/content-type-button.tsx b/packages/pl-fe/src/features/compose/components/content-type-button.tsx index e59fbad0e..9565d2b43 100644 --- a/packages/pl-fe/src/features/compose/components/content-type-button.tsx +++ b/packages/pl-fe/src/features/compose/components/content-type-button.tsx @@ -30,7 +30,7 @@ const ContentTypeButton: React.FC = ({ composeId }) => { const handleChange = (contentType: string) => () => dispatch(changeComposeContentType(composeId, contentType)); - const postFormats = instance.configuration.statuses.supported_mime_types; + const postFormats = instance.pleroma.metadata.post_formats; const options = []; diff --git a/packages/pl-fe/src/features/preferences/index.tsx b/packages/pl-fe/src/features/preferences/index.tsx index 23517cc2e..306cbcbb1 100644 --- a/packages/pl-fe/src/features/preferences/index.tsx +++ b/packages/pl-fe/src/features/preferences/index.tsx @@ -125,7 +125,7 @@ const Preferences = () => { }), [settings.locale]); const defaultContentTypeOptions = React.useMemo(() => { - const postFormats = instance.configuration.statuses.supported_mime_types; + const postFormats = instance.pleroma.metadata.post_formats; const options = Object.entries({ 'text/plain': intl.formatMessage(messages.content_type_plaintext), diff --git a/packages/pl-fe/src/reducers/compose.ts b/packages/pl-fe/src/reducers/compose.ts index a4b39a481..d68a931bb 100644 --- a/packages/pl-fe/src/reducers/compose.ts +++ b/packages/pl-fe/src/reducers/compose.ts @@ -311,7 +311,7 @@ const importAccount = (compose: Compose, account: CredentialAccount) => { // }; const updateDefaultContentType = (compose: Compose, instance: Instance) => { - const postFormats = instance.configuration.statuses.supported_mime_types; + const postFormats = instance.pleroma.metadata.post_formats; compose.content_type = postFormats.includes(compose.content_type) ? compose.content_type : postFormats.includes('text/markdown') ? 'text/markdown' : postFormats[0]; };