mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
fix(client): 🐛 Correctly set local parameter on getLocalTimeline
This commit is contained in:
parent
0d87dfd4ea
commit
fe0a25ad47
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue