Skip to content
Snippets Groups Projects
Commit dcfc5264 authored by syuilo's avatar syuilo
Browse files

fix 912791b3

parent 09078de3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
<template>
<Mfm :text="user.name || user.username" :plain="true" :nowrap="nowrap"/>
<Mfm :text="user.name ?? user.username" :author="user" :plain="true" :nowrap="nowrap"/>
</template>
<script lang="ts" setup>
......
......@@ -273,6 +273,7 @@ export default defineComponent({
key: Math.random(),
emoji: `:${token.props.name}:`,
normal: this.plain,
host: this.author?.host,
})];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment