refactor: switch to v1 instance api

V2 instance api is too new, and we should
support more versions.
This commit is contained in:
三咲智子 2023-01-08 17:16:15 +08:00
parent d415638bd9
commit c5573cb10b
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
2 changed files with 9 additions and 15 deletions

View file

@ -27,12 +27,6 @@ export interface ElkMasto extends mastodon.Client {
export type PaginatorState = 'idle' | 'loading' | 'done' | 'error'
export interface ServerInfo extends mastodon.v2.Instance {
server: string
timeUpdated: number
customEmojis?: Record<string, mastodon.v1.CustomEmoji>
}
export interface GroupedNotifications {
id: string
type: Exclude<string, 'grouped-reblogs-and-favourites'>