Fix Like button not working on renotes/boosts (#36)

This commit is contained in:
Marie 2023-10-01 04:09:48 +02:00 committed by GitHub
parent e3744d424d
commit 70495aea4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -373,7 +373,7 @@ function like(): void {
pleaseLogin(); pleaseLogin();
showMovedDialog(); showMovedDialog();
os.api('notes/reactions/create', { os.api('notes/reactions/create', {
noteId: props.note.id, noteId: appearNote.id,
reaction: '❤️', reaction: '❤️',
}); });
const el = likeButton.value as HTMLElement | null | undefined; const el = likeButton.value as HTMLElement | null | undefined;

View file

@ -440,7 +440,7 @@ function like(): void {
pleaseLogin(); pleaseLogin();
showMovedDialog(); showMovedDialog();
os.api('notes/reactions/create', { os.api('notes/reactions/create', {
noteId: props.note.id, noteId: appearNote.id,
reaction: '❤️', reaction: '❤️',
}); });
const el = likeButton.value as HTMLElement | null | undefined; const el = likeButton.value as HTMLElement | null | undefined;