mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 01:59:55 +00:00
Moving post community_view.
This commit is contained in:
parent
fdba257aaf
commit
637ecb2393
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue