From 04369c9da9424ef938e27351d2c240de866fe979 Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 27 Sep 2023 16:46:43 +0900 Subject: [PATCH] fix: alt texts shouldn't be interpreted as MFM --- packages/client/src/components/MkDialog.vue | 5 ++++- packages/client/src/components/MkMedia.vue | 1 + packages/client/src/os.ts | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/MkDialog.vue b/packages/client/src/components/MkDialog.vue index 5acef3965..3631375c8 100644 --- a/packages/client/src/components/MkDialog.vue +++ b/packages/client/src/components/MkDialog.vue @@ -54,7 +54,8 @@
- + {{ text }} +
{ return new Promise((resolve, reject) => { if (props.text == null && props.type === "error") { @@ -301,6 +302,7 @@ export function confirm(props: { text?: string | null; okText?: string; cancelText?: string; + isPlaintext?: boolean; }): Promise<{ canceled: boolean }> { return new Promise((resolve, reject) => { popup( @@ -323,6 +325,7 @@ export function yesno(props: { type: "error" | "info" | "success" | "warning" | "waiting" | "question"; title?: string | null; text?: string | null; + isPlaintext?: boolean; }): Promise<{ canceled: boolean }> { return new Promise((resolve, reject) => { popup(