From 5c42661ca77a3c70e1cf5eecf805e76678c5f05c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 15 Mar 2026 18:57:57 +0200 Subject: [PATCH] fixed post formats --- src/components/settings_modal/tabs/composing_tab.js | 3 ++- src/components/settings_modal/tabs/composing_tab.vue | 1 + src/modules/default_config_state.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/settings_modal/tabs/composing_tab.js b/src/components/settings_modal/tabs/composing_tab.js index 908582659..b2ddbe54a 100644 --- a/src/components/settings_modal/tabs/composing_tab.js +++ b/src/components/settings_modal/tabs/composing_tab.js @@ -12,6 +12,7 @@ import SharedComputedObject from '../helpers/shared_computed_object.js' import UnitSetting from '../helpers/unit_setting.vue' import { useInstanceStore } from 'src/stores/instance.js' +import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js' import { useSyncConfigStore } from 'src/stores/sync_config.js' import localeService from 'src/services/locale/locale.service.js' @@ -104,7 +105,7 @@ const ComposingTab = { }, computed: { postFormats() { - return useInstanceStore().postFormats || [] + return useInstanceCapabilitiesStore().postFormats }, postContentOptions() { return this.postFormats.map((format) => ({ diff --git a/src/components/settings_modal/tabs/composing_tab.vue b/src/components/settings_modal/tabs/composing_tab.vue index 4b6c0bb51..afed59cbc 100644 --- a/src/components/settings_modal/tabs/composing_tab.vue +++ b/src/components/settings_modal/tabs/composing_tab.vue @@ -29,6 +29,7 @@ id="postContentType" path="postContentType" :options="postContentOptions" + :local="true" > {{ $t('settings.default_post_status_content_type') }} diff --git a/src/modules/default_config_state.js b/src/modules/default_config_state.js index b2ec6405f..dafeb15ca 100644 --- a/src/modules/default_config_state.js +++ b/src/modules/default_config_state.js @@ -99,7 +99,6 @@ export const instanceDefaultConfig = { scopeCopy: true, subjectLineBehavior: 'email', alwaysShowSubjectInput: true, - postContentType: 'text/plain', minimalScopesMode: false, // This hides statuses filtered via a word filter @@ -168,6 +167,7 @@ export const instanceDefaultConfig = { export const defaultConfigLocal = { hideAttachments: false, hideAttachmentsInConv: false, + postContentType: 'text/plain', sidebarColumnWidth: '25rem', contentColumnWidth: '45rem', notifsColumnWidth: '25rem',