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 {
CommunityView,
CommentView,
CommunityModeratorView,
PostReportView,
@ -25,6 +26,7 @@ export interface GetPost {
export interface GetPostResponse {
post_view: PostView;
community_view: CommunityView;
comments: CommentView[];
moderators: CommunityModeratorView[];
online: number;

View file

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