fix: type error

This commit is contained in:
Mar0xy 2023-10-15 23:42:47 +02:00
parent ca428977a5
commit 67c95ea646
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -348,7 +348,7 @@ export class NoteEntityService implements OnModuleInit {
url: note.url ?? undefined,
poll: note.hasPoll ? this.populatePoll(note, meId) : undefined,
...(meId ? {
myReaction: this.populateMyReaction(note, meId, options?._hint_),
myReaction: this.populateMyReaction(note.id, meId, options?._hint_),
} : {}),
...(opts.detail ? {
@ -363,12 +363,6 @@ export class NoteEntityService implements OnModuleInit {
detail: true,
_hint_: options?._hint_,
}) : undefined,
poll: note.hasPoll ? this.populatePoll(note, meId) : undefined,
...(meId ? {
myReaction: this.populateMyReaction(note.id, meId, options?._hint_),
} : {}),
} : {}),
});