chore: update post channels (#515)
All checks were successful
Build and Deploy / build-and-deploy (push) Has been skipped
Build and Push Docker Images / build (push) Has been skipped

This commit is contained in:
Libin YANG 2025-01-13 08:51:35 +08:00 committed by GitHub
parent 8e8080b228
commit 49c3231012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,7 @@ async function prePost() {
markdown: ``, markdown: ``,
accounts: [], accounts: [],
} }
const accounts = allAccounts.value.filter(a => !['weixin', 'ipfs'].includes(a.type))
try { try {
auto = { auto = {
thumb: document.querySelector<HTMLImageElement>(`#output img`)?.src ?? ``, thumb: document.querySelector<HTMLImageElement>(`#output img`)?.src ?? ``,
@ -42,7 +43,7 @@ async function prePost() {
desc: document.querySelector(`#output p`)!.textContent ?? ``, desc: document.querySelector(`#output p`)!.textContent ?? ``,
content: output.value, content: output.value,
markdown: editor.value?.getValue() ?? ``, markdown: editor.value?.getValue() ?? ``,
accounts: allAccounts.value, accounts,
} }
} }
catch (error) { catch (error) {