fix: like button not playing reaction sound
This commit is contained in:
parent
c9ca1dd3f1
commit
b87142d2f7
6 changed files with 6 additions and 0 deletions
|
@ -562,6 +562,7 @@ function reply(viaKeyboard = false): void {
|
||||||
function like(): void {
|
function like(): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
sound.play('reaction');
|
||||||
if (props.mock) {
|
if (props.mock) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -628,6 +628,7 @@ function react(viaKeyboard = false): void {
|
||||||
function like(): void {
|
function like(): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
sound.play('reaction');
|
||||||
os.api('notes/like', {
|
os.api('notes/like', {
|
||||||
noteId: appearNote.value.id,
|
noteId: appearNote.value.id,
|
||||||
override: defaultLike.value,
|
override: defaultLike.value,
|
||||||
|
|
|
@ -224,6 +224,7 @@ function react(viaKeyboard = false): void {
|
||||||
function like(): void {
|
function like(): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
sound.play('reaction');
|
||||||
os.api('notes/like', {
|
os.api('notes/like', {
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
override: defaultLike.value,
|
override: defaultLike.value,
|
||||||
|
|
|
@ -563,6 +563,7 @@ function reply(viaKeyboard = false): void {
|
||||||
function like(): void {
|
function like(): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
sound.play('reaction');
|
||||||
if (props.mock) {
|
if (props.mock) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -636,6 +636,7 @@ function react(viaKeyboard = false): void {
|
||||||
function like(): void {
|
function like(): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
sound.play('reaction');
|
||||||
os.api('notes/like', {
|
os.api('notes/like', {
|
||||||
noteId: appearNote.value.id,
|
noteId: appearNote.value.id,
|
||||||
override: defaultLike.value,
|
override: defaultLike.value,
|
||||||
|
|
|
@ -233,6 +233,7 @@ function react(viaKeyboard = false): void {
|
||||||
function like(): void {
|
function like(): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
sound.play('reaction');
|
||||||
os.api('notes/like', {
|
os.api('notes/like', {
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
override: defaultLike.value,
|
override: defaultLike.value,
|
||||||
|
|
Loading…
Reference in a new issue