diff --git a/packages/client/src/components/MkReactionsViewer.details.vue b/packages/client/src/components/MkReactionsViewer.details.vue index 10e82cb9f..fb8d74ad4 100644 --- a/packages/client/src/components/MkReactionsViewer.details.vue +++ b/packages/client/src/components/MkReactionsViewer.details.vue @@ -3,7 +3,7 @@
-
{{ reaction.replace('@.', '') }}
+
{{ getReactionName(reaction) }}
@@ -20,6 +20,7 @@ import { } from 'vue'; import MkTooltip from './MkTooltip.vue'; import XReactionIcon from '@/components/MkReactionIcon.vue'; +import { getEmojiName } from '@/scripts/emojilist'; defineProps<{ showing: boolean; @@ -33,6 +34,14 @@ defineProps<{ const emit = defineEmits<{ (ev: 'closed'): void; }>(); + +function getReactionName(reaction: string): string { + const trimLocal = reaction.replace('@.', ''); + if (trimLocal.startsWith(':')) { + return trimLocal; + } + return getEmojiName(reaction) ?? reaction; +}