From 363d727c55c94edb3a6407693ecb1753e63b0798 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 22 Jan 2023 05:33:26 +0900 Subject: [PATCH] refactor --- packages/frontend/src/components/global/MkEmoji.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/global/MkEmoji.vue b/packages/frontend/src/components/global/MkEmoji.vue index aaad81c656..a6594a5262 100644 --- a/packages/frontend/src/components/global/MkEmoji.vue +++ b/packages/frontend/src/components/global/MkEmoji.vue @@ -35,7 +35,7 @@ const url = computed(() => { const found = customEmojis.find(x => x.name === customEmojiName); return found ? found.url : null; } else { - const rawUrl = props.host ? `/emoji/${customEmojiName}@${props.host}.webp` : `/emoji/${customEmojiName}.webp`; + const rawUrl = `/emoji/${customEmojiName}@${props.host}.webp`; return defaultStore.state.disableShowingAnimatedImages ? getStaticImageUrl(rawUrl) : rawUrl;