Play sound on like

This commit is contained in:
nelle 2024-07-14 04:20:14 -06:00
parent b8dcad8f8e
commit 7a4ac752d1
2 changed files with 4 additions and 0 deletions

View file

@ -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:

View file

@ -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,