diff --git a/.github/misskey/test.yml b/.github/misskey/test.yml index cd33f8a93..f43f74be1 100644 --- a/.github/misskey/test.yml +++ b/.github/misskey/test.yml @@ -4,12 +4,12 @@ url: 'http://misskey.local' port: 61812 db: - host: localhost + host: 127.0.0.1 port: 54312 db: test-misskey user: postgres pass: '' redis: - host: localhost + host: 127.0.0.1 port: 56312 id: aid 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; +}