mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 05:35:11 +00:00
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 {
|
||||
pleaseLogin();
|
||||
showMovedDialog();
|
||||
sound.play('reaction');
|
||||
if (props.mock) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -628,6 +628,7 @@ function react(viaKeyboard = false): void {
|
|||
function like(): void {
|
||||
pleaseLogin();
|
||||
showMovedDialog();
|
||||
sound.play('reaction');
|
||||
os.api('notes/like', {
|
||||
noteId: appearNote.value.id,
|
||||
override: defaultLike.value,
|
||||
|
|
|
@ -224,6 +224,7 @@ function react(viaKeyboard = false): void {
|
|||
function like(): void {
|
||||
pleaseLogin();
|
||||
showMovedDialog();
|
||||
sound.play('reaction');
|
||||
os.api('notes/like', {
|
||||
noteId: props.note.id,
|
||||
override: defaultLike.value,
|
||||
|
|
|
@ -563,6 +563,7 @@ function reply(viaKeyboard = false): void {
|
|||
function like(): void {
|
||||
pleaseLogin();
|
||||
showMovedDialog();
|
||||
sound.play('reaction');
|
||||
if (props.mock) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -636,6 +636,7 @@ function react(viaKeyboard = false): void {
|
|||
function like(): void {
|
||||
pleaseLogin();
|
||||
showMovedDialog();
|
||||
sound.play('reaction');
|
||||
os.api('notes/like', {
|
||||
noteId: appearNote.value.id,
|
||||
override: defaultLike.value,
|
||||
|
|
|
@ -233,6 +233,7 @@ function react(viaKeyboard = false): void {
|
|||
function like(): void {
|
||||
pleaseLogin();
|
||||
showMovedDialog();
|
||||
sound.play('reaction');
|
||||
os.api('notes/like', {
|
||||
noteId: props.note.id,
|
||||
override: defaultLike.value,
|
||||
|
|
Loading…
Reference in a new issue