mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
[mastodon-client] Fix normalizeUrlQuery
This commit is contained in:
parent
ec8285530b
commit
f747d6b8c1
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user