fixed post formats

This commit is contained in:
Henry Jameson 2026-03-15 18:57:57 +02:00
commit 5c42661ca7
3 changed files with 4 additions and 2 deletions

View file

@ -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) => ({

View file

@ -29,6 +29,7 @@
id="postContentType"
path="postContentType"
:options="postContentOptions"
:local="true"
>
{{ $t('settings.default_post_status_content_type') }}
</ChoiceSetting>

View file

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