diff options
author | Dessalines <tyhou13@gmx.com> | 2019-09-08 23:14:13 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-09-08 23:14:13 -0700 |
commit | 3f6b2be2cccedc4b743e8d80b84fde704980ea32 (patch) | |
tree | a1303dd130b753ee2076a9d4136b02f51a7973c8 /ui/src/interfaces.ts | |
parent | 48a30089b251c4723a3c9fd91b052c1379b46c03 (diff) |
Adding stickied posts.
- Fixes #245
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index f2675eb3..8c78d7d8 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -77,6 +77,7 @@ export interface Post { removed: boolean; deleted: boolean; locked: boolean; + stickied: boolean; nsfw: boolean; banned: boolean; banned_from_community: boolean; @@ -235,6 +236,7 @@ export interface GetModlogResponse { op: string; removed_posts: Array<ModRemovePost>, locked_posts: Array<ModLockPost>, + stickied_posts: Array<ModStickyPost>, removed_comments: Array<ModRemoveComment>, removed_communities: Array<ModRemoveCommunity>, banned_from_community: Array<ModBanFromCommunity>, @@ -268,6 +270,18 @@ export interface ModLockPost { community_name: string, } +export interface ModStickyPost { + id: number, + mod_user_id: number, + post_id: number, + stickied?: boolean, + when_: string, + mod_user_name: string, + post_name: string, + community_id: number, + community_name: string, +} + export interface ModRemoveComment { id: number, mod_user_id: number, @@ -425,6 +439,7 @@ export interface PostForm { deleted?: boolean; nsfw: boolean; locked?: boolean; + stickied?: boolean; reason?: string; auth: string; } |