upd: allow dismiss of instance announcements

This commit is contained in:
Mar0xy 2023-09-26 00:14:33 +02:00
parent 1cbb3086fa
commit c9159c7313
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -2320,10 +2320,9 @@ export default class Misskey implements MegalodonInterface {
} }
public async dismissInstanceAnnouncement(_id: string): Promise<Response<Record<never, never>>> { public async dismissInstanceAnnouncement(_id: string): Promise<Response<Record<never, never>>> {
return new Promise((_, reject) => { return this.client.post<{}>("/api/i/read-announcement", {
const err = new NoImplementedError('misskey does not support') announcementId: _id,
reject(err) });
})
} }
public async addReactionToAnnouncement(_id: string, _name: string): Promise<Response<Record<never, never>>> { public async addReactionToAnnouncement(_id: string, _name: string): Promise<Response<Record<never, never>>> {