Skip to content

Commit 46abc4d

Browse files
committed
Adding MostComments sort, and FederatedInstances
1 parent 30a53b7 commit 46abc4d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/interfaces/api/site.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export interface GetSiteResponse {
100100
online: number;
101101
version: string;
102102
my_user?: UserSafeSettings; // Gives back your user and settings if logged in
103-
federated_instances: string[];
103+
federated_instances?: FederatedInstances;
104104
}
105105

106106
export interface TransferSite {
@@ -120,3 +120,9 @@ export interface SaveSiteConfig {
120120
config_hjson: string;
121121
auth: string;
122122
}
123+
124+
export interface FederatedInstances {
125+
linked: string[];
126+
allowed: string[];
127+
blocked: string[];
128+
}

src/interfaces/others.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export enum SortType {
7373
TopMonth = 'TopMonth',
7474
TopYear = 'TopYear',
7575
TopAll = 'TopAll',
76+
MostComments = 'MostComments',
7677
}
7778

7879
export enum ListingType {

0 commit comments

Comments
 (0)