X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_views_actor%2Fsrc%2Fstructs.rs;h=43654c311d1352f6b363112af9e7d404d8d73202;hb=9c3efe32e7b2ef7978b7957eac10691beb551dde;hp=b45728af541f5ce1e65dbca5fe32e57e9f1f0699;hpb=becb8b4f66bdacca23b0b169e07d845afcb3d204;p=lemmy.git diff --git a/crates/db_views_actor/src/structs.rs b/crates/db_views_actor/src/structs.rs index b45728af..43654c31 100644 --- a/crates/db_views_actor/src/structs.rs +++ b/crates/db_views_actor/src/structs.rs @@ -2,6 +2,7 @@ use lemmy_db_schema::{ aggregates::structs::{CommentAggregates, CommunityAggregates, PersonAggregates}, source::{ comment::Comment, + comment_reply::CommentReply, community::CommunitySafe, person::{PersonSafe, PersonSafeAlias1}, person_mention::PersonMention, @@ -65,6 +66,22 @@ pub struct PersonMentionView { pub my_vote: Option, // Left join to CommentLike } +#[derive(Debug, PartialEq, Serialize, Deserialize, Clone)] +pub struct CommentReplyView { + pub comment_reply: CommentReply, + pub comment: Comment, + pub creator: PersonSafe, + pub post: Post, + pub community: CommunitySafe, + pub recipient: PersonSafeAlias1, + pub counts: CommentAggregates, + pub creator_banned_from_community: bool, // Left Join to CommunityPersonBan + pub subscribed: SubscribedType, // Left join to CommunityFollower + pub saved: bool, // Left join to CommentSaved + pub creator_blocked: bool, // Left join to PersonBlock + pub my_vote: Option, // Left join to CommentLike +} + #[derive(Debug, Serialize, Deserialize, Clone)] pub struct PersonViewSafe { pub person: PersonSafe,