Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlan404 committed May 1, 2024
1 parent 4dcc6ae commit b5259f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/platforms/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const fetchLightTubePublicInstances = async () => {
type: "lighttube",
name: i.host,
url: `${i.scheme}://${i.host}`,
notes: i.country + (i.isCloudflare ? ", cloudflare" : ""),
region: i.country,
notes: (i.isCloudflare ? "cloudflare" : ""),
} as Instance));
};

Expand Down Expand Up @@ -53,6 +54,6 @@ export const fetchInvidiousPublicInstances = async () => {
type: "invidious",
url: i.uri,
name,
notes: i.region,
region: i.region,
} as Instance));
};
2 changes: 2 additions & 0 deletions src/api/types/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ export interface LTInstance {
name: string;
url: string;
notes?: string;
region?: string;
};

export interface InvidiousInstance {
type: "invidious";
name: string;
url: string;
notes?: string;
region?: string;
};

export type Instance = LTInstance | InvidiousInstance;

0 comments on commit b5259f7

Please sign in to comment.