From 83a1c677aef7f5db58b2a34465aab17fd2467789 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 24 Jan 2024 15:38:46 -0500 Subject: [PATCH] Updating types from lemmy main branch. (#234) --- src/types/Community.ts | 1 - src/types/CommunityAggregates.ts | 1 - src/types/CreateCommunity.ts | 2 -- src/types/CreateSite.ts | 2 -- src/types/EditCommunity.ts | 2 -- src/types/EditSite.ts | 2 -- src/types/GetPersonDetailsResponse.ts | 2 ++ src/types/LocalSite.ts | 2 -- 8 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/types/Community.ts b/src/types/Community.ts index 5884c8f..31f0859 100644 --- a/src/types/Community.ts +++ b/src/types/Community.ts @@ -19,5 +19,4 @@ export interface Community { hidden: boolean; posting_restricted_to_mods: boolean; instance_id: InstanceId; - only_followers_can_vote: boolean; } diff --git a/src/types/CommunityAggregates.ts b/src/types/CommunityAggregates.ts index b8fc455..d686794 100644 --- a/src/types/CommunityAggregates.ts +++ b/src/types/CommunityAggregates.ts @@ -11,5 +11,4 @@ export interface CommunityAggregates { users_active_week: /* integer */ number; users_active_month: /* integer */ number; users_active_half_year: /* integer */ number; - subscribers_local: /* integer */ number; } diff --git a/src/types/CreateCommunity.ts b/src/types/CreateCommunity.ts index 9114f93..41c06c1 100644 --- a/src/types/CreateCommunity.ts +++ b/src/types/CreateCommunity.ts @@ -10,6 +10,4 @@ export interface CreateCommunity { nsfw?: boolean; posting_restricted_to_mods?: boolean; discussion_languages?: Array; - local_only?: boolean; - only_followers_can_vote?: boolean; } diff --git a/src/types/CreateSite.ts b/src/types/CreateSite.ts index f467308..107c3fb 100644 --- a/src/types/CreateSite.ts +++ b/src/types/CreateSite.ts @@ -43,6 +43,4 @@ export interface CreateSite { blocked_instances?: Array; taglines?: Array; registration_mode?: RegistrationMode; - content_warning?: string; - auto_expand_images?: boolean; } diff --git a/src/types/EditCommunity.ts b/src/types/EditCommunity.ts index f37f234..9d48fb4 100644 --- a/src/types/EditCommunity.ts +++ b/src/types/EditCommunity.ts @@ -11,6 +11,4 @@ export interface EditCommunity { nsfw?: boolean; posting_restricted_to_mods?: boolean; discussion_languages?: Array; - local_only?: boolean; - only_followers_can_vote?: boolean; } diff --git a/src/types/EditSite.ts b/src/types/EditSite.ts index 987f4aa..fae73a9 100644 --- a/src/types/EditSite.ts +++ b/src/types/EditSite.ts @@ -44,6 +44,4 @@ export interface EditSite { taglines?: Array; registration_mode?: RegistrationMode; reports_email_admins?: boolean; - content_warning?: string; - auto_expand_images?: boolean; } diff --git a/src/types/GetPersonDetailsResponse.ts b/src/types/GetPersonDetailsResponse.ts index 75e2a18..6d14f77 100644 --- a/src/types/GetPersonDetailsResponse.ts +++ b/src/types/GetPersonDetailsResponse.ts @@ -3,9 +3,11 @@ import type { CommentView } from "./CommentView"; import type { CommunityModeratorView } from "./CommunityModeratorView"; import type { PersonView } from "./PersonView"; import type { PostView } from "./PostView"; +import type { Site } from "./Site"; export interface GetPersonDetailsResponse { person_view: PersonView; + site?: Site; comments: Array; posts: Array; moderates: Array; diff --git a/src/types/LocalSite.ts b/src/types/LocalSite.ts index e1a11ea..67aab50 100644 --- a/src/types/LocalSite.ts +++ b/src/types/LocalSite.ts @@ -29,6 +29,4 @@ export interface LocalSite { registration_mode: RegistrationMode; reports_email_admins: boolean; federation_signed_fetch: boolean; - content_warning?: string; - auto_expand_images: boolean; }