From c9159c73133a9aaa04676ee9636aeb8978eb1c08 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Tue, 26 Sep 2023 00:14:33 +0200 Subject: [PATCH] upd: allow dismiss of instance announcements --- packages/megalodon/src/misskey.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 92806efdd..babdf9794 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -2320,10 +2320,9 @@ export default class Misskey implements MegalodonInterface { } public async dismissInstanceAnnouncement(_id: string): Promise>> { - return new Promise((_, reject) => { - const err = new NoImplementedError('misskey does not support') - reject(err) - }) + return this.client.post<{}>("/api/i/read-announcement", { + announcementId: _id, + }); } public async addReactionToAnnouncement(_id: string, _name: string): Promise>> {