From 4d6be6e9c22a0122cdc1457fe3a87aecfefb66e7 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Mon, 25 Apr 2022 23:10:02 +0200 Subject: [PATCH] Add site to GetCommunityResponse (#47) * Add site to GetCommunityResponse * Add new site fields (fixes #44) --- src/interfaces/api/community.ts | 2 ++ src/interfaces/source.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index 7d072ed..6341ab1 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -1,3 +1,4 @@ +import { Site } from "../source"; import { CommunityModeratorView, CommunityView, @@ -17,6 +18,7 @@ export interface GetCommunity { export interface GetCommunityResponse { community_view: CommunityView; + site?: Site; moderators: CommunityModeratorView[]; online: number; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index c58ccb3..10a5d94 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -56,6 +56,10 @@ export interface Site { application_question?: string; private_instance: boolean; default_theme: string; + actor_id: string; + last_refreshed_at: string; + inbox_url: string; + public_key: string; } export interface PrivateMessage {