diff options
author | Dessalines <tyhou13@gmx.com> | 2019-09-05 17:18:48 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-09-05 17:18:48 -0700 |
commit | 565fc0abdb3857390fb61cfcfeffa6fa0378ed6f (patch) | |
tree | 44c07b15d8501167ce359a6f7cf180c2acab2462 /ui/src/interfaces.ts | |
parent | beea10454bb59ef3795fc92c994cab3557e90fee (diff) |
Adding ability to do mod action on post creator
- Fixes #248
- Show banned on user comment and user overview. Fixes #264
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index c9a647d6..f2675eb3 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -34,6 +34,7 @@ export interface UserView { post_score: number; number_of_comments: number; comment_score: number; + banned: boolean; } export interface CommunityUser { @@ -77,6 +78,8 @@ export interface Post { deleted: boolean; locked: boolean; nsfw: boolean; + banned: boolean; + banned_from_community: boolean; published: string; updated?: string; creator_name: string; @@ -138,6 +141,8 @@ export interface Site { number_of_communities: number; } +export enum BanType {Community, Site}; + export interface FollowCommunityForm { community_id: number; follow: boolean; |