From b0bc69aac8033e4022394358aeaac632a77054ef Mon Sep 17 00:00:00 2001 From: Marie Date: Thu, 22 Feb 2024 21:16:08 +0000 Subject: [PATCH] Reactions not working on child notes in detailed view --- packages/frontend/src/components/MkNoteSub.vue | 4 ++-- packages/frontend/src/components/SkNoteSub.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue index ea108ad51..37811dd52 100644 --- a/packages/frontend/src/components/MkNoteSub.vue +++ b/packages/frontend/src/components/MkNoteSub.vue @@ -141,7 +141,7 @@ const replies = ref([]); const isRenote = ( props.note.renote != null && props.note.text == null && - props.note.fileIds.length === 0 && + props.note.fileIds && props.note.fileIds.length === 0 && props.note.poll == null ); @@ -211,7 +211,7 @@ function react(viaKeyboard = false): void { } } else { blur(); - reactionPicker.show(reactButton.value, reaction => { + reactionPicker.show(reactButton.value ?? null, props.note, reaction => { misskeyApi('notes/reactions/create', { noteId: props.note.id, reaction: reaction, diff --git a/packages/frontend/src/components/SkNoteSub.vue b/packages/frontend/src/components/SkNoteSub.vue index 1486742f4..1cffd8dd6 100644 --- a/packages/frontend/src/components/SkNoteSub.vue +++ b/packages/frontend/src/components/SkNoteSub.vue @@ -155,7 +155,7 @@ const replies = ref([]); const isRenote = ( props.note.renote != null && props.note.text == null && - props.note.fileIds.length === 0 && + props.note.fileIds && props.note.fileIds.length === 0 && props.note.poll == null ); @@ -225,7 +225,7 @@ function react(viaKeyboard = false): void { } } else { blur(); - reactionPicker.show(reactButton.value, reaction => { + reactionPicker.show(reactButton.value ?? null, props.note, reaction => { misskeyApi('notes/reactions/create', { noteId: props.note.id, reaction: reaction,