mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
[mastodon-client] Fix normalizeUrlQuery
This commit is contained in:
parent
ec8285530b
commit
f747d6b8c1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue