From b5fcfaed8bc88caf19e2bd8096fa2c99910b2a88 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 10 Aug 2021 20:15:38 -0400 Subject: [PATCH] Add moderates to MyUserInfo --- src/interfaces/api/person.ts | 5 +---- src/interfaces/api/site.ts | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index 58b6655..4a58211 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -92,12 +92,9 @@ export interface GetPersonDetails { export interface GetPersonDetailsResponse { person_view: PersonViewSafe; - follows: CommunityFollowerView[]; - community_blocks: CommunityBlockView[]; - person_blocks: PersonBlockView[]; - moderates: CommunityModeratorView[]; comments: CommentView[]; posts: PostView[]; + moderates: CommunityModeratorView[]; } export interface GetRepliesResponse { diff --git a/src/interfaces/api/site.ts b/src/interfaces/api/site.ts index aaa3042..e595476 100644 --- a/src/interfaces/api/site.ts +++ b/src/interfaces/api/site.ts @@ -1,6 +1,7 @@ import { CommunityBlockView, CommunityFollowerView, + CommunityModeratorView, LocalUserSettingsView, PersonBlockView, } from '../views'; @@ -111,6 +112,7 @@ export interface GetSiteResponse { export interface MyUserInfo { local_user_view: LocalUserSettingsView; follows: CommunityFollowerView[]; + moderates: CommunityModeratorView[]; community_blocks: CommunityBlockView[]; person_blocks: PersonBlockView[]; }