From 65e7d9d157c2a4d9f44f516ff7a8eb28d7a94510 Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 7 Apr 2024 18:54:14 +0900 Subject: [PATCH] fix (client): Unicode emoji rendering --- packages/client/src/components/global/MkEmoji.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/client/src/components/global/MkEmoji.vue b/packages/client/src/components/global/MkEmoji.vue index ba9b689905..9ef6cec1f1 100644 --- a/packages/client/src/components/global/MkEmoji.vue +++ b/packages/client/src/components/global/MkEmoji.vue @@ -12,8 +12,8 @@ v-else-if="char && !useOsNativeEmojis" class="mk-emoji" :src="url" - :alt="alt || undefined" - :title="alt || undefined" + :alt="alt!" + :title="alt!" decoding="async" /> {{ char }} @@ -50,7 +50,6 @@ const customEmoji = computed(() => : null, ); const url = computed(() => { - if (!customEmoji.value) return undefined; if (char.value) { return char2filePath(char.value); } else {