refactor(publish): check glitch edition

zio/stable
三咲智子 2023-01-10 16:36:06 +08:00
parent 217f1ea567
commit 34be0078c2
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ async function publish() {
...draft.params, ...draft.params,
status: htmlToText(draft.params.status || ''), status: htmlToText(draft.params.status || ''),
mediaIds: draft.attachments.map(a => a.id), 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 } as mastodon.v1.CreateStatusParams
if (process.dev) { if (process.dev) {