]> Untitled Git - lemmy.git/blobdiff - crates/db_views/src/structs.rs
Showing # of unread comments for posts. Fixes #2134 (#2393)
[lemmy.git] / crates / db_views / src / structs.rs
index 347f0129273bd9b3d7f3cc90f18b64c8797dbe41..5b068d9aed24efbcb1f20062a0a4b5d611bc4d94 100644 (file)
@@ -85,6 +85,7 @@ pub struct PostView {
   pub read: bool,                 // Left join to PostRead
   pub creator_blocked: bool,      // Left join to PersonBlock
   pub my_vote: Option<i16>,       // Left join to PostLike
+  pub unread_comments: i64,       // Left join to PersonPostAggregates
 }
 
 #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone)]