mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 04:03:10 +02:00
fix: type error
This commit is contained in:
parent
ca428977a5
commit
67c95ea646
1 changed files with 1 additions and 7 deletions
|
@ -348,7 +348,7 @@ export class NoteEntityService implements OnModuleInit {
|
||||||
url: note.url ?? undefined,
|
url: note.url ?? undefined,
|
||||||
poll: note.hasPoll ? this.populatePoll(note, meId) : undefined,
|
poll: note.hasPoll ? this.populatePoll(note, meId) : undefined,
|
||||||
...(meId ? {
|
...(meId ? {
|
||||||
myReaction: this.populateMyReaction(note, meId, options?._hint_),
|
myReaction: this.populateMyReaction(note.id, meId, options?._hint_),
|
||||||
} : {}),
|
} : {}),
|
||||||
|
|
||||||
...(opts.detail ? {
|
...(opts.detail ? {
|
||||||
|
@ -363,12 +363,6 @@ export class NoteEntityService implements OnModuleInit {
|
||||||
detail: true,
|
detail: true,
|
||||||
_hint_: options?._hint_,
|
_hint_: options?._hint_,
|
||||||
}) : undefined,
|
}) : undefined,
|
||||||
|
|
||||||
poll: note.hasPoll ? this.populatePoll(note, meId) : undefined,
|
|
||||||
|
|
||||||
...(meId ? {
|
|
||||||
myReaction: this.populateMyReaction(note.id, meId, options?._hint_),
|
|
||||||
} : {}),
|
|
||||||
} : {}),
|
} : {}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue