Moving post community_view.

This commit is contained in:
Dessalines 2020-12-23 15:26:52 -05:00
parent fdba257aaf
commit 637ecb2393
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
import { import {
CommunityView,
CommentView, CommentView,
CommunityModeratorView, CommunityModeratorView,
PostReportView, PostReportView,
@ -25,6 +26,7 @@ export interface GetPost {
export interface GetPostResponse { export interface GetPostResponse {
post_view: PostView; post_view: PostView;
community_view: CommunityView;
comments: CommentView[]; comments: CommentView[];
moderators: CommunityModeratorView[]; moderators: CommunityModeratorView[];
online: number; online: number;

View file

@ -67,7 +67,6 @@ export interface PrivateMessageView {
export interface PostView { export interface PostView {
post: Post; post: Post;
creator: UserSafe; creator: UserSafe;
community: CommunitySafe;
creator_banned_from_community: boolean; // Left Join to CommunityUserBan creator_banned_from_community: boolean; // Left Join to CommunityUserBan
counts: PostAggregates; counts: PostAggregates;
subscribed: boolean; // Left join to CommunityFollower subscribed: boolean; // Left join to CommunityFollower