fix: correctly use note.emojis

This commit is contained in:
ThatOneCalculator 2023-02-12 20:54:46 -08:00
parent 0094ba8a2d
commit 46d4327fce
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 3 additions and 3 deletions

View File

@ -17,10 +17,10 @@
<template v-else> <template v-else>
<div :class="$style.tabs"> <div :class="$style.tabs">
<button v-for="reaction in reactions" :key="reaction" :class="[$style.tab, { [$style.tabActive]: tab === reaction }]" class="_button" @click="tab = reaction"> <button v-for="reaction in reactions" :key="reaction" :class="[$style.tab, { [$style.tabActive]: tab === reaction }]" class="_button" @click="tab = reaction">
<XReactionIcon <MkReactionIcon
ref="reactionRef" ref="reactionRef"
:reaction="reaction ? reaction.replace(/^:(\w+):$/, ':$1@.:') : reaction" :reaction="reaction ? reaction.replace(/^:(\w+):$/, ':$1@.:') : reaction"
:custom-emojis="reactions" :custom-emojis="note.emojis"
/> />
<span style="margin-left: 4px;">{{ note.reactions[reaction] }}</span> <span style="margin-left: 4px;">{{ note.reactions[reaction] }}</span>
</button> </button>
@ -41,7 +41,7 @@
import { onMounted, watch } from 'vue'; import { onMounted, watch } from 'vue';
import * as misskey from 'calckey-js'; import * as misskey from 'calckey-js';
import MkModalWindow from '@/components/MkModalWindow.vue'; import MkModalWindow from '@/components/MkModalWindow.vue';
import XReactionIcon from '@/components/MkReactionIcon.vue'; import MkReactionIcon from '@/components/MkReactionIcon.vue';
import MkUserCardMini from '@/components/MkUserCardMini.vue'; import MkUserCardMini from '@/components/MkUserCardMini.vue';
import { userPage } from '@/filters/user'; import { userPage } from '@/filters/user';
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';