From b87142d2f7ddc1aa5f4bd615726d689d83ec7b22 Mon Sep 17 00:00:00 2001 From: Marie Date: Tue, 2 Jan 2024 00:47:08 +0100 Subject: [PATCH] fix: like button not playing reaction sound --- packages/frontend/src/components/MkNote.vue | 1 + packages/frontend/src/components/MkNoteDetailed.vue | 1 + packages/frontend/src/components/MkNoteSub.vue | 1 + packages/frontend/src/components/SkNote.vue | 1 + packages/frontend/src/components/SkNoteDetailed.vue | 1 + packages/frontend/src/components/SkNoteSub.vue | 1 + 6 files changed, 6 insertions(+) diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 1f69307de..426307be4 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -562,6 +562,7 @@ function reply(viaKeyboard = false): void { function like(): void { pleaseLogin(); showMovedDialog(); + sound.play('reaction'); if (props.mock) { return; } diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 4da72898a..537a99dc0 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -628,6 +628,7 @@ function react(viaKeyboard = false): void { function like(): void { pleaseLogin(); showMovedDialog(); + sound.play('reaction'); os.api('notes/like', { noteId: appearNote.value.id, override: defaultLike.value, diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue index 2d2044ce0..08423219f 100644 --- a/packages/frontend/src/components/MkNoteSub.vue +++ b/packages/frontend/src/components/MkNoteSub.vue @@ -224,6 +224,7 @@ function react(viaKeyboard = false): void { function like(): void { pleaseLogin(); showMovedDialog(); + sound.play('reaction'); os.api('notes/like', { noteId: props.note.id, override: defaultLike.value, diff --git a/packages/frontend/src/components/SkNote.vue b/packages/frontend/src/components/SkNote.vue index e2f4660ad..b98e20bad 100644 --- a/packages/frontend/src/components/SkNote.vue +++ b/packages/frontend/src/components/SkNote.vue @@ -563,6 +563,7 @@ function reply(viaKeyboard = false): void { function like(): void { pleaseLogin(); showMovedDialog(); + sound.play('reaction'); if (props.mock) { return; } diff --git a/packages/frontend/src/components/SkNoteDetailed.vue b/packages/frontend/src/components/SkNoteDetailed.vue index ba5399164..ca3e8ca3f 100644 --- a/packages/frontend/src/components/SkNoteDetailed.vue +++ b/packages/frontend/src/components/SkNoteDetailed.vue @@ -636,6 +636,7 @@ function react(viaKeyboard = false): void { function like(): void { pleaseLogin(); showMovedDialog(); + sound.play('reaction'); os.api('notes/like', { noteId: appearNote.value.id, override: defaultLike.value, diff --git a/packages/frontend/src/components/SkNoteSub.vue b/packages/frontend/src/components/SkNoteSub.vue index d978edd5a..8350e7154 100644 --- a/packages/frontend/src/components/SkNoteSub.vue +++ b/packages/frontend/src/components/SkNoteSub.vue @@ -233,6 +233,7 @@ function react(viaKeyboard = false): void { function like(): void { pleaseLogin(); showMovedDialog(); + sound.play('reaction'); os.api('notes/like', { noteId: props.note.id, override: defaultLike.value,