This commit is contained in:
syuilo 2022-12-30 08:41:22 +09:00
parent 09078de36b
commit dcfc526453
3 changed files with 4 additions and 2 deletions

View file

@ -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;