From 34be0078c2925cfc8b7c4ac43067c07a232c282a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Tue, 10 Jan 2023 16:36:06 +0800 Subject: [PATCH] refactor(publish): check glitch edition --- components/publish/PublishWidget.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 2ac061e2..6cf2df7a 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -136,7 +136,7 @@ async function publish() { ...draft.params, status: htmlToText(draft.params.status || ''), mediaIds: draft.attachments.map(a => a.id), - ...((masto.config as any).props.version.raw.includes('+glitch') ? { 'content-type': 'text/markdown' } : {}), + ...(isGlitchEdition.value ? { 'content-type': 'text/markdown' } : {}), } as mastodon.v1.CreateStatusParams if (process.dev) {