diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index babdf9794d..fe9f553ad4 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -610,7 +610,7 @@ export default class Misskey implements MegalodonInterface { max_id?: string since_id?: string } - ): Promise>> { + ): Promise> | any> { let params = { query: q, detail: true @@ -631,7 +631,13 @@ export default class Misskey implements MegalodonInterface { return Object.assign(res, { data: res.data.map(u => MisskeyAPI.Converter.userDetail(u, this.baseUrl)) }) - }) + }).catch(() => ({ + data: { + accounts: [], + statuses: [], + hashtags: [], + } + })) } // ======================================