fix: like not being set

This commit is contained in:
Mar0xy 2023-11-12 22:40:33 +01:00
parent f0a2ce00e7
commit 430a96ebdb
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 4 additions and 4 deletions

View file

@ -534,7 +534,7 @@ function react(viaKeyboard = false): void {
os.api('notes/reactions/create', { os.api('notes/reactions/create', {
noteId: appearNote.id, noteId: appearNote.id,
reaction: '❤️', reaction: props.meta.defaultLike,
}); });
const el = reactButton.value as HTMLElement | null | undefined; const el = reactButton.value as HTMLElement | null | undefined;
if (el) { if (el) {

View file

@ -558,7 +558,7 @@ function react(viaKeyboard = false): void {
if (appearNote.reactionAcceptance === 'likeOnly') { if (appearNote.reactionAcceptance === 'likeOnly') {
os.api('notes/reactions/create', { os.api('notes/reactions/create', {
noteId: appearNote.id, noteId: appearNote.id,
reaction: '❤️', reaction: props.meta.defaultLike,
}); });
const el = reactButton.value as HTMLElement | null | undefined; const el = reactButton.value as HTMLElement | null | undefined;
if (el) { if (el) {
@ -588,7 +588,7 @@ function like(): void {
showMovedDialog(); showMovedDialog();
os.api('notes/reactions/create', { os.api('notes/reactions/create', {
noteId: appearNote.id, noteId: appearNote.id,
reaction: '❤️', reaction: props.meta.defaultLike,
}); });
const el = likeButton.value as HTMLElement | null | undefined; const el = likeButton.value as HTMLElement | null | undefined;
if (el) { if (el) {

View file

@ -189,7 +189,7 @@ function react(viaKeyboard = false): void {
if (props.note.reactionAcceptance === 'likeOnly') { if (props.note.reactionAcceptance === 'likeOnly') {
os.api('notes/reactions/create', { os.api('notes/reactions/create', {
noteId: props.note.id, noteId: props.note.id,
reaction: '❤️', reaction: props.meta.defaultLike,
}); });
const el = reactButton.value as HTMLElement | null | undefined; const el = reactButton.value as HTMLElement | null | undefined;
if (el) { if (el) {