diff --git a/packages/client/src/components/global/MkEmoji.vue b/packages/client/src/components/global/MkEmoji.vue
index 69d6e0dec1..1e8abbb650 100644
--- a/packages/client/src/components/global/MkEmoji.vue
+++ b/packages/client/src/components/global/MkEmoji.vue
@@ -4,16 +4,16 @@
class="mk-emoji custom"
:class="{ normal, noStyle }"
:src="url"
- :alt="alt"
- :title="alt"
+ :alt="alt || undefined"
+ :title="alt || undefined"
decoding="async"
/>
{{ char }}
@@ -50,6 +50,7 @@ const customEmoji = computed(() =>
: null,
);
const url = computed(() => {
+ if (!customEmoji.value) return undefined;
if (char.value) {
return char2filePath(char.value);
} else {