From 7a4ac752d1f870658b666397d9399a35b8c9f5f8 Mon Sep 17 00:00:00 2001 From: limepotato Date: Sun, 14 Jul 2024 04:20:14 -0600 Subject: [PATCH] Play sound on like --- packages/client/src/components/MkStarButton.vue | 2 ++ packages/client/src/components/MkStarButtonNoEmoji.vue | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/client/src/components/MkStarButton.vue b/packages/client/src/components/MkStarButton.vue index 021cd72bc..99ebc9b70 100644 --- a/packages/client/src/components/MkStarButton.vue +++ b/packages/client/src/components/MkStarButton.vue @@ -52,6 +52,8 @@ const props = defineProps<{ function star(ev?: MouseEvent): void { pleaseLogin(); + sound.play("reaction"); + os.api("notes/reactions/create", { noteId: props.note.id, reaction: diff --git a/packages/client/src/components/MkStarButtonNoEmoji.vue b/packages/client/src/components/MkStarButtonNoEmoji.vue index 5667095cd..3b1d6291f 100644 --- a/packages/client/src/components/MkStarButtonNoEmoji.vue +++ b/packages/client/src/components/MkStarButtonNoEmoji.vue @@ -64,6 +64,8 @@ function toggleStar(ev?: MouseEvent): void { pleaseLogin(); if (!props.reacted) { + sound.play("reaction"); + os.api("notes/reactions/create", { noteId: props.note.id, reaction: instance.defaultReaction,