From a7cd43fcd9f1ea4fee13e90f806e018b89d18fdf Mon Sep 17 00:00:00 2001 From: Aleksandr Ippatev <alexanderippatiev24@gmail.com> Date: Tue, 14 Jan 2025 17:39:59 +0900 Subject: [PATCH] fix: disable publish when be bypassed by Ctrl + Enter (#3133) --- components/publish/PublishWidget.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index c0964cc0..75e3f4e6 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -196,6 +196,9 @@ async function toggleSensitive() { } async function publish() { + if (isPublishDisabled.value || isExceedingCharacterLimit.value) + return + const publishResult = await (threadIsActive.value ? publishThread() : publishDraft()) if (publishResult) { if (Array.isArray(publishResult))