X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_views%2Fsrc%2Fstructs.rs;h=5b068d9aed24efbcb1f20062a0a4b5d611bc4d94;hb=0aeb78b8f39f777cd5d1af292258897964e58f2a;hp=347f0129273bd9b3d7f3cc90f18b64c8797dbe41;hpb=f2537ba7db39b338617e07f36c5cd6b11f59795e;p=lemmy.git diff --git a/crates/db_views/src/structs.rs b/crates/db_views/src/structs.rs index 347f0129..5b068d9a 100644 --- a/crates/db_views/src/structs.rs +++ b/crates/db_views/src/structs.rs @@ -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, // Left join to PostLike + pub unread_comments: i64, // Left join to PersonPostAggregates } #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone)]