From 49c3231012b3089b0d0737312578409a9953171f Mon Sep 17 00:00:00 2001 From: Libin YANG Date: Mon, 13 Jan 2025 08:51:35 +0800 Subject: [PATCH] chore: update post channels (#515) --- src/components/CodemirrorEditor/EditorHeader/PostInfo.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue b/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue index de51835..0fb47a4 100644 --- a/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue +++ b/src/components/CodemirrorEditor/EditorHeader/PostInfo.vue @@ -32,6 +32,7 @@ async function prePost() { markdown: ``, accounts: [], } + const accounts = allAccounts.value.filter(a => !['weixin', 'ipfs'].includes(a.type)) try { auto = { thumb: document.querySelector(`#output img`)?.src ?? ``, @@ -42,7 +43,7 @@ async function prePost() { desc: document.querySelector(`#output p`)!.textContent ?? ``, content: output.value, markdown: editor.value?.getValue() ?? ``, - accounts: allAccounts.value, + accounts, } } catch (error) {