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

fix(client): リアクションのカスタム絵文字が表示されないことがあるのを修正

Fix #9683
parent ccb22539
No related branches found
No related tags found
No related merge requests found
...@@ -31,11 +31,11 @@ const useOsNativeEmojis = computed(() => defaultStore.state.emojiStyle === 'nati ...@@ -31,11 +31,11 @@ const useOsNativeEmojis = computed(() => defaultStore.state.emojiStyle === 'nati
const url = computed(() => { const url = computed(() => {
if (char.value) { if (char.value) {
return char2path(char.value); return char2path(char.value);
} else if (props.host == null) { } else if (props.host == null && !customEmojiName.includes('@')) {
const found = customEmojis.find(x => x.name === customEmojiName); const found = customEmojis.find(x => x.name === customEmojiName);
return found ? found.url : null; return found ? found.url : null;
} else { } else {
const rawUrl = `/emoji/${customEmojiName}@${props.host}.webp`; const rawUrl = props.host ? `/emoji/${customEmojiName}@${props.host}.webp` : `/emoji/${customEmojiName}.webp`;
return defaultStore.state.disableShowingAnimatedImages return defaultStore.state.disableShowingAnimatedImages
? getStaticImageUrl(rawUrl) ? getStaticImageUrl(rawUrl)
: rawUrl; : rawUrl;
......
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