From 941f44dc714a6b8bb2f00945397396781e8f0cd1 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 17 Sep 2023 22:54:37 +0200 Subject: [PATCH] [mastodon-client] Fix note favorite count --- packages/backend/src/server/api/mastodon/converters/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/converters/note.ts b/packages/backend/src/server/api/mastodon/converters/note.ts index 51fac6d54..9fda8275a 100644 --- a/packages/backend/src/server/api/mastodon/converters/note.ts +++ b/packages/backend/src/server/api/mastodon/converters/note.ts @@ -36,7 +36,7 @@ export class NoteConverter { host, ); - const reactionCount = NoteReactions.countBy({id: note.id}); + const reactionCount = NoteReactions.countBy({noteId: note.id}); const reaction = user ? NoteReactions.findOneBy({ userId: user.id,