From 10be4267b1060475c90dded6fca6de5481689f24 Mon Sep 17 00:00:00 2001 From: hijiki Date: Sun, 3 Nov 2024 22:58:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=84=E3=81=84=E3=81=AD=E6=95=B0=E3=82=92?= =?UTF-8?q?=E9=9A=A0=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/SkNote.vue | 6 +++--- packages/frontend/src/components/SkNoteDetailed.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/components/SkNote.vue b/packages/frontend/src/components/SkNote.vue index b02d902482..e908cbc793 100755 --- a/packages/frontend/src/components/SkNote.vue +++ b/packages/frontend/src/components/SkNote.vue @@ -471,11 +471,11 @@ if (!props.mock) { if (appearNote.value.reactionAcceptance === 'likeOnly') { useTooltip(reactButton, async (showing) => { - const reactions = await misskeyApiGet('notes/reactions', { - noteId: appearNote.value.id, + const reactions = !defaultStore.state.hideReactionUsers ? await misskeyApiGet('notes/reactions', { + noteId: appearNote.value.id, limit: 10, _cacheKey_: appearNote.value.reactionCount, - }); + }) : []; const users = reactions.map(x => x.user); diff --git a/packages/frontend/src/components/SkNoteDetailed.vue b/packages/frontend/src/components/SkNoteDetailed.vue index 748e1ffb99..a7ccbc7b15 100755 --- a/packages/frontend/src/components/SkNoteDetailed.vue +++ b/packages/frontend/src/components/SkNoteDetailed.vue @@ -491,11 +491,11 @@ function boostVisibility() { if (appearNote.value.reactionAcceptance === 'likeOnly') { useTooltip(reactButton, async (showing) => { - const reactions = await misskeyApiGet('notes/reactions', { + const reactions = !defaultStore.state.hideReactionUsers ? await misskeyApiGet('notes/reactions', { noteId: appearNote.value.id, limit: 10, _cacheKey_: appearNote.value.reactionCount, - }); + }) : []; const users = reactions.map(x => x.user);