From c2d1564851f3eaf996c83e8703a43f9354958ad8 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 04:57:32 +0200 Subject: [PATCH] upd: return empty tags on featured_tags call --- packages/megalodon/src/misskey.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index f43e88cfcc..0ea66cb49a 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -931,10 +931,14 @@ export default class Misskey implements MegalodonInterface { // accounts/featured_tags // ====================================== public async getFeaturedTags(): Promise>> { - return new Promise((_, reject) => { - const err = new NoImplementedError('misskey does not support') - reject(err) - }) + const tags: Entity.FeaturedTag[] = []; + const res: Response = { + headers: undefined, + statusText: "", + status: 200, + data: tags, + }; + return new Promise((resolve) => resolve(res)); } public async createFeaturedTag(_name: string): Promise> {