upd: update misskey support in megalodon
This commit is contained in:
parent
1501ab261d
commit
c85857f242
@ -1041,7 +1041,7 @@ export interface MegalodonInterface {
|
||||
*
|
||||
* @return Array of lists.
|
||||
*/
|
||||
getLists(): Promise<Response<Array<Entity.List>>>
|
||||
getLists(id: string): Promise<Response<Array<Entity.List>>>
|
||||
/**
|
||||
* Show a single list.
|
||||
*
|
||||
|
@ -1714,9 +1714,9 @@ export default class Misskey implements MegalodonInterface {
|
||||
/**
|
||||
* POST /api/users/lists/list
|
||||
*/
|
||||
public async getLists(): Promise<Response<Array<Entity.List>>> {
|
||||
public async getLists(id: string): Promise<Response<Array<Entity.List>>> {
|
||||
return this.client
|
||||
.post<Array<MisskeyAPI.Entity.List>>('/api/users/lists/list')
|
||||
.post<Array<MisskeyAPI.Entity.List>>('/api/users/lists/list', { userId: id })
|
||||
.then(res => ({ ...res, data: res.data.map(l => MisskeyAPI.Converter.list(l)) }))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user