X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi_common%2Fsrc%2Fpost.rs;h=4884c15dae60c6707e45c89733ea9b6070b75ee0;hb=9c3efe32e7b2ef7978b7957eac10691beb551dde;hp=8c05790e92c21f0ba6bc568fe1420af5fbcab1a0;hpb=becb8b4f66bdacca23b0b169e07d845afcb3d204;p=lemmy.git diff --git a/crates/api_common/src/post.rs b/crates/api_common/src/post.rs index 8c05790e..4884c15d 100644 --- a/crates/api_common/src/post.rs +++ b/crates/api_common/src/post.rs @@ -1,10 +1,10 @@ use crate::sensitive::Sensitive; use lemmy_db_schema::{ - newtypes::{CommunityId, DbUrl, PostId, PostReportId}, + newtypes::{CommentId, CommunityId, DbUrl, PostId, PostReportId}, ListingType, SortType, }; -use lemmy_db_views::structs::{CommentView, PostReportView, PostView}; +use lemmy_db_views::structs::{PostReportView, PostView}; use lemmy_db_views_actor::structs::{CommunityModeratorView, CommunityView}; use serde::{Deserialize, Serialize}; use url::Url; @@ -27,7 +27,8 @@ pub struct PostResponse { #[derive(Debug, Serialize, Deserialize, Clone, Default)] pub struct GetPost { - pub id: PostId, + pub id: Option, + pub comment_id: Option, pub auth: Option>, } @@ -35,7 +36,6 @@ pub struct GetPost { pub struct GetPostResponse { pub post_view: PostView, pub community_view: CommunityView, - pub comments: Vec, pub moderators: Vec, pub online: usize, }