[mastodon-client] Fix normalizeUrlQuery

This commit is contained in:
Laura Hausmann 2023-09-15 16:21:35 +02:00
parent ec8285530b
commit f747d6b8c1
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -61,7 +61,7 @@ export function convertTimelinesArgsId(q: ParsedUrlQuery) {
export function normalizeUrlQuery(q: ParsedUrlQuery): any { export function normalizeUrlQuery(q: ParsedUrlQuery): any {
const dict: 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]; dict[k] = Array.isArray(q[k]) ? q[k]?.at(-1) : q[k];
} }