mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-09 19:53:08 +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>>> {
|
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>>> {
|
||||||
|
|
Loading…
Reference in a new issue