[mastodon-client] Fix timeline helper function

This commit is contained in:
Laura Hausmann 2023-10-02 17:45:24 +02:00
parent a3722d2dce
commit 137ede02ce
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -29,7 +29,7 @@ export function argsToBools(q: ParsedUrlQuery, additional: string[] = []) {
// - https://docs.joinmastodon.org/methods/accounts/#statuses
// - https://docs.joinmastodon.org/methods/timelines/#public
// - https://docs.joinmastodon.org/methods/timelines/#tag
let keys = ['only_media', 'exclude_replies', 'exclude_reblogs', 'pinned', 'local', 'remote']
let keys = ['only_media', 'exclude_replies', 'exclude_reblogs', 'pinned', 'local', 'remote'].concat(additional);
let object: any = q;
for (const key of keys)