From f747d6b8c164ce815aa5da19fca282e24b1c8cae Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 15 Sep 2023 16:21:35 +0200 Subject: [PATCH] [mastodon-client] Fix normalizeUrlQuery --- packages/backend/src/server/api/mastodon/endpoints/timeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/timeline.ts b/packages/backend/src/server/api/mastodon/endpoints/timeline.ts index d11f3e0e8..d16c9e491 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/timeline.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/timeline.ts @@ -61,7 +61,7 @@ export function convertTimelinesArgsId(q: ParsedUrlQuery) { export function normalizeUrlQuery(q: ParsedUrlQuery): any { const dict: any = {}; - for (const k in Object.keys(q)) { + for (const k in q) { dict[k] = Array.isArray(q[k]) ? q[k]?.at(-1) : q[k]; }