feat: add markdown support for glitch-soc instances (#752)

pull/754/head
Ryan Cao 2023-01-04 16:59:59 +08:00 zatwierdzone przez GitHub
rodzic 4354dd6a2e
commit 9f7c5a2040
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -147,6 +147,7 @@ async function publish() {
...draft.params,
status: htmlToText(draft.params.status || ''),
mediaIds: draft.attachments.map(a => a.id),
...(masto.version.includes('+glitch') ? { 'content-type': 'text/markdown' } : {}),
} as CreateStatusParams
if (process.dev) {