From 70495aea4eea635086a2511611faaa2e046a132f Mon Sep 17 00:00:00 2001 From: Marie Date: Sun, 1 Oct 2023 04:09:48 +0200 Subject: [PATCH] Fix Like button not working on renotes/boosts (#36) --- packages/frontend/src/components/MkNote.vue | 2 +- packages/frontend/src/components/MkNoteDetailed.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index d7a6b241b..e08588e8e 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -373,7 +373,7 @@ function like(): void { pleaseLogin(); showMovedDialog(); os.api('notes/reactions/create', { - noteId: props.note.id, + noteId: appearNote.id, reaction: '❤️', }); const el = likeButton.value as HTMLElement | null | undefined; diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 1bd2cef80..8e1f69a0c 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -440,7 +440,7 @@ function like(): void { pleaseLogin(); showMovedDialog(); os.api('notes/reactions/create', { - noteId: props.note.id, + noteId: appearNote.id, reaction: '❤️', }); const el = likeButton.value as HTMLElement | null | undefined;