mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 07:13:09 +02:00
parent
ccb22539e1
commit
aa339be2ab
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue