From d80665fb2bab70fa33c1340f659bf570b1f1c05e Mon Sep 17 00:00:00 2001 From: hijiki Date: Sat, 19 Oct 2024 00:15:02 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E6=9B=BF=E3=83=80=E3=82=A4=E3=82=A2?= =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=92=E7=84=A1=E5=8A=B9=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/MkPostForm.vue | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 2bc607fbb6..50c0ff0e55 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -787,31 +787,6 @@ async function post(ev?: MouseEvent) { } } - if (defaultStore.state.warnMissingAltText) { - const filesData = toRaw(files.value); - - const isMissingAltText = filesData.filter( - file => file.type.startsWith('image/') || file.type.startsWith('video/') || file.type.startsWith('audio/') - ).some(file => !file.comment); - - if (isMissingAltText) { - const { canceled, result } = await os.actions({ - type: 'warning', - text: i18n.ts.thisPostIsMissingAltText, - actions: [{ - value: 'cancel', - text: i18n.ts.thisPostIsMissingAltTextCancel, - }, { - value: 'ignore', - text: i18n.ts.thisPostIsMissingAltTextIgnore, - }], - }); - - if (canceled) return; - if (result === 'cancel') return; - } - } - let postData = { text: text.value === '' ? null : text.value, fileIds: files.value.length > 0 ? files.value.map(f => f.id) : undefined,