diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2024-02-29 11:47:24 +0000 |
|---|---|---|
| committer | tamaina <tamaina@hotmail.co.jp> | 2024-02-29 11:47:24 +0000 |
| commit | 7565f7bec60f37d5229ebd1cf602fc0a42ecba3b (patch) | |
| tree | 110ca2502f7160b5c69579621d3d4e70de97cd15 /packages/frontend/src/components/MkReactionsViewer.reaction.vue | |
| parent | enhance: 通知の履歴をリセットできるように (#13335) (diff) | |
| download | sharkey-7565f7bec60f37d5229ebd1cf602fc0a42ecba3b.tar.gz sharkey-7565f7bec60f37d5229ebd1cf602fc0a42ecba3b.tar.bz2 sharkey-7565f7bec60f37d5229ebd1cf602fc0a42ecba3b.zip | |
fix(client): use colorizeEmoji when unicodeEmojisMap.get
Diffstat (limited to 'packages/frontend/src/components/MkReactionsViewer.reaction.vue')
| -rw-r--r-- | packages/frontend/src/components/MkReactionsViewer.reaction.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index bccee5109d..acfc37ebb7 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -34,7 +34,7 @@ import { i18n } from '@/i18n.js'; import * as sound from '@/scripts/sound.js'; import { checkReactionPermissions } from '@/scripts/check-reaction-permissions.js'; import { customEmojisMap } from '@/custom-emojis.js'; -import { unicodeEmojisMap } from '@/scripts/emojilist.js'; +import { getUnicodeEmoji, unicodeEmojisMap } from '@/scripts/emojilist.js'; const props = defineProps<{ reaction: string; @@ -52,7 +52,7 @@ const emit = defineEmits<{ const buttonEl = shallowRef<HTMLElement>(); const emojiName = computed(() => props.reaction.replace(/:/g, '').replace(/@\./, '')); -const emoji = computed(() => customEmojisMap.get(emojiName.value) ?? unicodeEmojisMap.get(props.reaction)); +const emoji = computed(() => customEmojisMap.get(emojiName.value) ?? getUnicodeEmoji(props.reaction)); const canToggle = computed(() => { return !props.reaction.match(/@\w/) && $i && emoji.value && checkReactionPermissions($i, props.note, emoji.value); |