Skip to content

Commit

Permalink
Update NoteEntityService.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Sep 20, 2024
1 parent f514d77 commit 5c76ad8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/backend/src/core/entities/NoteEntityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,11 @@ export class NoteEntityService implements OnModuleInit {
poll: note.hasPoll ? this.populatePoll(note, meId) : undefined,

...(meId && Object.keys(reactions).length > 0 ? {
myReaction: this.populateMyReaction(note, meId, options?._hint_),
myReaction: this.populateMyReaction({
id: note.id,
reactions: reactions,
reactionAndUserPairCache: note.reactionAndUserPairCache,
}, meId, options?._hint_),
} : {}),
} : {}),
});
Expand Down

0 comments on commit 5c76ad8

Please sign in to comment.