mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 03:11:26 +00:00
Add site to GetCommunityResponse (#47)
* Add site to GetCommunityResponse * Add new site fields (fixes #44)
This commit is contained in:
parent
72f29cb684
commit
4d6be6e9c2
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue