From 4d6111d1a4427967692c70900c09cc1fe56a5b10 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 8 Oct 2023 01:07:27 +0200 Subject: [PATCH] [mastodon-client] Fix handling of empty tagged param in getUserStatuses --- packages/backend/src/server/api/mastodon/helpers/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/helpers/user.ts b/packages/backend/src/server/api/mastodon/helpers/user.ts index 7adfc31cc..80c175f21 100644 --- a/packages/backend/src/server/api/mastodon/helpers/user.ts +++ b/packages/backend/src/server/api/mastodon/helpers/user.ts @@ -326,7 +326,7 @@ export class UserHelpers { if (limit > 40) limit = 40; const localUser = ctx.user as ILocalUser | null; - if (tagged !== undefined) { + if (tagged !== undefined && tagged.length > 0) { //FIXME respect tagged return []; }