mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 14:43:09 +02:00
upd: allow dismiss of instance announcements
This commit is contained in:
parent
1cbb3086fa
commit
c9159c7313
1 changed files with 3 additions and 4 deletions
|
@ -2320,10 +2320,9 @@ export default class Misskey implements MegalodonInterface {
|
|||
}
|
||||
|
||||
public async dismissInstanceAnnouncement(_id: string): Promise<Response<Record<never, never>>> {
|
||||
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<Response<Record<never, never>>> {
|
||||
|
|
Loading…
Reference in a new issue