Fix reply making sound and add sound to star

This commit is contained in:
nelle 2024-07-14 06:32:44 -06:00
parent 87d6a62eb7
commit ed27f70d2d
3 changed files with 1 additions and 2 deletions

View file

@ -374,7 +374,6 @@ useNoteCapture({
function reply(viaKeyboard = false): void { function reply(viaKeyboard = false): void {
pleaseLogin(); pleaseLogin();
sound.play("reaction");
os.post( os.post(
{ {
reply: appearNote, reply: appearNote,

View file

@ -52,6 +52,7 @@ const props = defineProps<{
function star(ev?: MouseEvent): void { function star(ev?: MouseEvent): void {
pleaseLogin(); pleaseLogin();
sound.play("reaction");
os.api("notes/reactions/create", { os.api("notes/reactions/create", {
noteId: props.note.id, noteId: props.note.id,
reaction: reaction:

View file

@ -65,7 +65,6 @@ function toggleStar(ev?: MouseEvent): void {
if (!props.reacted) { if (!props.reacted) {
sound.play("reaction"); sound.play("reaction");
os.api("notes/reactions/create", { os.api("notes/reactions/create", {
noteId: props.note.id, noteId: props.note.id,
reaction: instance.defaultReaction, reaction: instance.defaultReaction,