From 2af396a2b86c6b7f1c418e8cc8801cddb09ba7e5 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Thu, 2 Oct 2025 20:51:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=80=8B?= =?UTF-8?q?=E4=B8=8D=E5=90=88=E7=90=86=E7=9A=84=20uri-list=20=E8=BD=89?= =?UTF-8?q?=E6=8F=9B=E6=88=90=E5=8A=9F=E5=88=A4=E6=96=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index e6e27ee..033808c 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -353,7 +353,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC // 即便是 no-cors 還是殘廢, 因此暫時沒有什麽想法 const re = await fetch(url) const type = re.headers.get("Content-Type") - if (type?.startsWith("image/")) + if (type && re.ok) addFile(type as string, getFileNameOrRandom(url), re) } catch (e) { snackbar({