mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
fix Vue warning from MkCustomEmoji.vue
This commit is contained in:
parent
5239d59f44
commit
7f577bd0a9
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ const props = defineProps<{
|
|||
fallbackToImage?: boolean;
|
||||
}>();
|
||||
|
||||
const react = inject(DI.mfmEmojiReactCallback);
|
||||
const react = inject(DI.mfmEmojiReactCallback, null);
|
||||
|
||||
const customEmojiName = computed(() => (props.name[0] === ':' ? props.name.substring(1, props.name.length - 1) : props.name).replace('@.', ''));
|
||||
const isLocal = computed(() => !props.host && (customEmojiName.value.endsWith('@.') || !customEmojiName.value.includes('@')));
|
||||
|
|
Loading…
Add table
Reference in a new issue