diff options
author | Dessalines <tyhou13@gmx.com> | 2019-12-11 12:21:47 -0800 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-12-11 12:21:47 -0800 |
commit | fca8e6a0a9308340e88ad291c89c40e7d17f27be (patch) | |
tree | 7b5cdfa2323499d4f477645962baee2948f482ec /ui/src/interfaces.ts | |
parent | e9f476566378b6745ecb82808c0943550285c3fd (diff) |
Adding some site oriented settings.
- Adding option to close registration. Fixes #350
- Adding option to disable showing NSFW buttons. Fixes #364
- Adding option to disable downvotes. Fixes #239
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index f327202a..8b860887 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -199,6 +199,9 @@ export interface Site { number_of_posts: number; number_of_comments: number; number_of_communities: number; + enable_downvotes: boolean; + open_registration: boolean; + enable_nsfw: boolean; } export enum BanType { @@ -625,9 +628,9 @@ export interface CreatePostLikeResponse { export interface SiteForm { name: string; description?: string; - removed?: boolean; - reason?: string; - expires?: number; + enable_downvotes: boolean; + open_registration: boolean; + enable_nsfw: boolean; auth?: string; } |