Set pinned parameter as optional
This commit is contained in:
parent
92bb4f62f7
commit
43734b27b6
|
@ -283,7 +283,7 @@ export default class Mastodon implements MegalodonInterface {
|
|||
|
||||
public async getAccountStatuses(
|
||||
id: string,
|
||||
options?: { limit?: number; max_id?: string; since_id?: string; pinned: boolean }
|
||||
options?: { limit?: number; max_id?: string; since_id?: string; pinned?: boolean }
|
||||
): Promise<Response<Array<Entity.Status>>> {
|
||||
let params = {}
|
||||
if (options) {
|
||||
|
|
|
@ -168,7 +168,7 @@ export interface MegalodonInterface {
|
|||
*/
|
||||
getAccountStatuses(
|
||||
id: string,
|
||||
options?: { limit?: number; max_id?: string; since_id?: string; pinned: boolean }
|
||||
options?: { limit?: number; max_id?: string; since_id?: string; pinned?: boolean }
|
||||
): Promise<Response<Array<Entity.Status>>>
|
||||
/**
|
||||
* GET /api/v1/pleroma/accounts/:id/favourites
|
||||
|
|
|
@ -286,7 +286,7 @@ export default class Misskey implements MegalodonInterface {
|
|||
*/
|
||||
public async getAccountStatuses(
|
||||
id: string,
|
||||
options?: { limit?: number; max_id?: string; since_id?: string; pinned: boolean }
|
||||
options?: { limit?: number; max_id?: string; since_id?: string; pinned?: boolean }
|
||||
): Promise<Response<Array<Entity.Status>>> {
|
||||
if (options && options.pinned) {
|
||||
return this.client
|
||||
|
|
Loading…
Reference in a new issue