Add site to GetCommunityResponse (#47)

* Add site to GetCommunityResponse

* Add new site fields (fixes #44)
This commit is contained in:
Nutomic 2022-04-25 23:10:02 +02:00 committed by GitHub
parent 72f29cb684
commit 4d6be6e9c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,4 @@
import { Site } from "../source";
import { import {
CommunityModeratorView, CommunityModeratorView,
CommunityView, CommunityView,
@ -17,6 +18,7 @@ export interface GetCommunity {
export interface GetCommunityResponse { export interface GetCommunityResponse {
community_view: CommunityView; community_view: CommunityView;
site?: Site;
moderators: CommunityModeratorView[]; moderators: CommunityModeratorView[];
online: number; online: number;
} }

View file

@ -56,6 +56,10 @@ export interface Site {
application_question?: string; application_question?: string;
private_instance: boolean; private_instance: boolean;
default_theme: string; default_theme: string;
actor_id: string;
last_refreshed_at: string;
inbox_url: string;
public_key: string;
} }
export interface PrivateMessage { export interface PrivateMessage {