From c1354ee5e767f9bc791ee8eda939f5d90b674623 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 11 Oct 2023 02:36:38 +0200 Subject: [PATCH] [mastodon-client] Don't return reactions with count=0 --- 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 8e65c9919..e9f2300c9 100644 --- a/packages/backend/src/server/api/mastodon/converters/note.ts +++ b/packages/backend/src/server/api/mastodon/converters/note.ts @@ -163,7 +163,7 @@ export class NoteConverter { url: url, static_url: url, }; - }); + }).filter(r => r.count > 0); } public static async encodeEvent(note: Note, user: ILocalUser | undefined): Promise {