From c85857f242ccf47beb698e9bd7c7482324e867b1 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 24 Sep 2023 14:44:55 +0200 Subject: [PATCH] upd: update misskey support in megalodon --- packages/megalodon/src/megalodon.ts | 2 +- packages/megalodon/src/misskey.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/megalodon/src/megalodon.ts b/packages/megalodon/src/megalodon.ts index b2f62e4adf..19cd5c5551 100644 --- a/packages/megalodon/src/megalodon.ts +++ b/packages/megalodon/src/megalodon.ts @@ -1041,7 +1041,7 @@ export interface MegalodonInterface { * * @return Array of lists. */ - getLists(): Promise>> + getLists(id: string): Promise>> /** * Show a single list. * diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 521cc041f1..3a154b68ea 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -1714,9 +1714,9 @@ export default class Misskey implements MegalodonInterface { /** * POST /api/users/lists/list */ - public async getLists(): Promise>> { + public async getLists(id: string): Promise>> { return this.client - .post>('/api/users/lists/list') + .post>('/api/users/lists/list', { userId: id }) .then(res => ({ ...res, data: res.data.map(l => MisskeyAPI.Converter.list(l)) })) }