From dcfc526453ccaa5e5a4e0cb237c3380d80eb1a42 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 30 Dec 2022 08:41:22 +0900 Subject: [PATCH] fix 912791b3ab --- packages/frontend/src/components/global/MkEmoji.vue | 3 ++- packages/frontend/src/components/global/MkUserName.vue | 2 +- packages/frontend/src/components/mfm.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/global/MkEmoji.vue b/packages/frontend/src/components/global/MkEmoji.vue index 9a8418758..bf6be7491 100644 --- a/packages/frontend/src/components/global/MkEmoji.vue +++ b/packages/frontend/src/components/global/MkEmoji.vue @@ -17,6 +17,7 @@ const props = defineProps<{ normal?: boolean; noStyle?: boolean; isReaction?: boolean; + host?: string | null; }>(); const char2path = defaultStore.state.emojiStyle === 'twemoji' ? char2twemojiFilePath : char2fluentEmojiFilePath; @@ -29,7 +30,7 @@ const url = computed(() => { if (char.value) { return char2path(char.value); } else { - const rawUrl = '/emoji/' + customEmojiName + '.webp'; + const rawUrl = props.host ? `/emoji/${customEmojiName}@${props.host}.webp` : `/emoji/${customEmojiName}.webp`; return defaultStore.state.disableShowingAnimatedImages ? getStaticImageUrl(rawUrl) : rawUrl; diff --git a/packages/frontend/src/components/global/MkUserName.vue b/packages/frontend/src/components/global/MkUserName.vue index c5fc61a18..fc08310ac 100644 --- a/packages/frontend/src/components/global/MkUserName.vue +++ b/packages/frontend/src/components/global/MkUserName.vue @@ -1,5 +1,5 @@