Adding creator_is_admin to various views. (#215)

- Backend PR: https://github.com/LemmyNet/lemmy/pull/4165
This commit is contained in:
Dessalines 2023-11-22 09:58:05 -05:00 committed by GitHub
parent 726d82eb75
commit 5859830ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 1 deletions

View file

@ -17,6 +17,7 @@ export interface CommentReplyView {
counts: CommentAggregates; counts: CommentAggregates;
creator_banned_from_community: boolean; creator_banned_from_community: boolean;
creator_is_moderator: boolean; creator_is_moderator: boolean;
creator_is_admin: boolean;
subscribed: SubscribedType; subscribed: SubscribedType;
saved: boolean; saved: boolean;
creator_blocked: boolean; creator_blocked: boolean;

View file

@ -14,6 +14,7 @@ export interface CommentView {
counts: CommentAggregates; counts: CommentAggregates;
creator_banned_from_community: boolean; creator_banned_from_community: boolean;
creator_is_moderator: boolean; creator_is_moderator: boolean;
creator_is_admin: boolean;
subscribed: SubscribedType; subscribed: SubscribedType;
saved: boolean; saved: boolean;
creator_blocked: boolean; creator_blocked: boolean;

View file

@ -17,6 +17,7 @@ export interface PersonMentionView {
counts: CommentAggregates; counts: CommentAggregates;
creator_banned_from_community: boolean; creator_banned_from_community: boolean;
creator_is_moderator: boolean; creator_is_moderator: boolean;
creator_is_admin: boolean;
subscribed: SubscribedType; subscribed: SubscribedType;
saved: boolean; saved: boolean;
creator_blocked: boolean; creator_blocked: boolean;

View file

@ -5,4 +5,5 @@ import type { PersonAggregates } from "./PersonAggregates";
export interface PersonView { export interface PersonView {
person: Person; person: Person;
counts: PersonAggregates; counts: PersonAggregates;
is_admin: boolean;
} }

View file

@ -11,6 +11,7 @@ export interface PostView {
community: Community; community: Community;
creator_banned_from_community: boolean; creator_banned_from_community: boolean;
creator_is_moderator: boolean; creator_is_moderator: boolean;
creator_is_admin: boolean;
counts: PostAggregates; counts: PostAggregates;
subscribed: SubscribedType; subscribed: SubscribedType;
saved: boolean; saved: boolean;

View file

@ -24,7 +24,6 @@ export interface SaveUserSettings {
bot_account?: boolean; bot_account?: boolean;
show_bot_accounts?: boolean; show_bot_accounts?: boolean;
show_read_posts?: boolean; show_read_posts?: boolean;
show_new_post_notifs?: boolean;
discussion_languages?: Array<LanguageId>; discussion_languages?: Array<LanguageId>;
open_links_in_new_tab?: boolean; open_links_in_new_tab?: boolean;
infinite_scroll_enabled?: boolean; infinite_scroll_enabled?: boolean;