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 {
pleaseLogin();
sound.play("reaction");
os.post(
{
reply: appearNote,

View file

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

View file

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