[mastodon-client] Fix global timeline
This commit is contained in:
parent
5e6594d91d
commit
7b64cf9688
|
@ -45,7 +45,8 @@ export function apiTimelineMastodon(router: Router): void {
|
||||||
const client = getClient(BASE_URL, accessTokens);
|
const client = getClient(BASE_URL, accessTokens);
|
||||||
try {
|
try {
|
||||||
const query: any = ctx.query;
|
const query: any = ctx.query;
|
||||||
const data = query.local
|
const data =
|
||||||
|
query.local === "true"
|
||||||
? await client.getLocalTimeline(
|
? await client.getLocalTimeline(
|
||||||
convertTimelinesArgsId(argsToBools(limitToInt(query))),
|
convertTimelinesArgsId(argsToBools(limitToInt(query))),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue