diff --git a/src/interfaces/api/community.ts b/src/interfaces/api/community.ts index 89c5a04..2ed8f66 100644 --- a/src/interfaces/api/community.ts +++ b/src/interfaces/api/community.ts @@ -23,7 +23,7 @@ export interface CreateCommunity { description?: string; icon?: string; banner?: string; - nsfw: boolean; + nsfw?: boolean; auth: string; } @@ -78,7 +78,7 @@ export interface EditCommunity { description?: string; icon?: string; banner?: string; - nsfw: boolean; + nsfw?: boolean; auth: string; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 8688458..fac4070 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -2,7 +2,6 @@ export interface LocalUserSettings { id: number; person_id: number; email?: string; - admin: boolean; show_nsfw: boolean; theme: string; default_sort_type: number; @@ -10,7 +9,6 @@ export interface LocalUserSettings { lang: string; show_avatars: boolean; send_notifications_to_email: boolean; - matrix_user_id?: string; } export interface PersonSafe { @@ -18,7 +16,6 @@ export interface PersonSafe { name: string; preferred_username?: string; avatar?: string; - admin: boolean; banned: boolean; published: string; updated?: string; @@ -29,6 +26,8 @@ export interface PersonSafe { deleted: boolean; inbox_url: string; shared_inbox_url: string; + matrix_user_id?: string; + admin: boolean; } export interface Site {