From 31e0e07d92879c1276d46a34a7a6966f1e184157 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 1 Oct 2023 04:03:00 +0200 Subject: [PATCH] upd: use appearNote instead of props.note --- 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..473d0204f 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: apperNote.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;