From 042a765f5e22cd9beba2bc85506c2b881d03eaa5 Mon Sep 17 00:00:00 2001 From: fly_mc <me@flymc.cc> Date: Fri, 1 Nov 2024 13:27:44 +0800 Subject: [PATCH] fix disable emoji reactions --- packages/frontend/src/components/MkNote.vue | 4 ++-- packages/frontend/src/components/MkNoteDetailed.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 61b1669615..b4b02f312b 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -420,7 +420,7 @@ if (!props.mock) { }); }); - if (appearNote.value.reactionAcceptance === 'likeOnly' || disableReactionsViewer) { + if (appearNote.value.reactionAcceptance === 'likeOnly' || disableReactionsViewer.value) { useTooltip(reactButton, async (showing) => { const reactions = await misskeyApiGet('notes/reactions', { noteId: appearNote.value.id, @@ -500,7 +500,7 @@ function like(): void { function react(): void { pleaseLogin({ openOnRemote: pleaseLoginContext.value }); showMovedDialog(); - if (appearNote.value.reactionAcceptance === 'likeOnly' || disableReactionsViewer) { + if (appearNote.value.reactionAcceptance === 'likeOnly' || disableReactionsViewer.value) { sound.playMisskeySfx('reaction'); if (props.mock) { diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 8cbd5ea424..7f02681e52 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -427,7 +427,7 @@ useTooltip(renoteButton, async (showing) => { }); }); -if (appearNote.value.reactionAcceptance === 'likeOnly' || disableReactionsViewer) { +if (appearNote.value.reactionAcceptance === 'likeOnly' || disableReactionsViewer.value) { useTooltip(reactButton, async (showing) => { const reactions = await misskeyApiGet('notes/reactions', { noteId: appearNote.value.id, @@ -495,7 +495,7 @@ function like(): void { function react(): void { pleaseLogin({ openOnRemote: pleaseLoginContext.value }); showMovedDialog(); - if (appearNote.value.reactionAcceptance === 'likeOnly' || disableReactionsViewer) { + if (appearNote.value.reactionAcceptance === 'likeOnly' || disableReactionsViewer.value) { sound.playMisskeySfx('reaction'); misskeyApi('notes/reactions/create', {