forked from Mirrors/elk
refactor(publish): check glitch edition
This commit is contained in:
parent
217f1ea567
commit
34be0078c2
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue