pl-fe: revert

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-11-28 19:07:22 +01:00
parent 0ca1130222
commit b770e7bd16
3 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ const ContentTypeButton: React.FC<IContentTypeButton> = ({ 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 = [];

View file

@ -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),

View file

@ -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];
};