fix(client): 🐛 Correctly set local parameter on getLocalTimeline

This commit is contained in:
Jesse Wierzbinski 2024-12-02 16:03:29 +01:00
parent 0d87dfd4ea
commit fe0a25ad47
No known key found for this signature in database

View file

@ -1350,7 +1350,7 @@ export class Client extends BaseClient {
} }
/** /**
* GET /api/v1/timelines/public * GET /api/v1/timelines/public?local=true
* *
* @param options.only_media Show only statuses with media attached? Defaults to false. * @param options.only_media Show only statuses with media attached? Defaults to false.
* @param options.limit Max number of results to return. Defaults to 20. * @param options.limit Max number of results to return. Defaults to 20.
@ -1372,6 +1372,8 @@ export class Client extends BaseClient {
): Promise<Output<Status[]>> { ): Promise<Output<Status[]>> {
const params = new URLSearchParams(); const params = new URLSearchParams();
params.set("local", "true");
if (options) { if (options) {
if (options.max_id) { if (options.max_id) {
params.set("max_id", options.max_id); params.set("max_id", options.max_id);