[mastodon-client] Fix global timeline

This commit is contained in:
Laura Hausmann 2023-07-07 19:23:47 +02:00
parent acff402e21
commit 197977c3a8
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -45,7 +45,8 @@ export function apiTimelineMastodon(router: Router): void {
const client = getClient(BASE_URL, accessTokens);
try {
const query: any = ctx.query;
const data = query.local
const data =
query.local === "true"
? await client.getLocalTimeline(
convertTimelinesArgsId(argsToBools(limitToInt(query))),
)