]> Untitled Git - lemmy.git/blobdiff - crates/db_views/src/structs.rs
Moving settings to Database. (#2492)
[lemmy.git] / crates / db_views / src / structs.rs
index 83f1e122d38c3d7f988767bbc89c3d1f2650ce39..1e4fe70ae8450653d373a41558ec03afe1bd5c74 100644 (file)
@@ -5,6 +5,8 @@ use lemmy_db_schema::{
     comment_report::CommentReport,
     community::CommunitySafe,
     language::Language,
+    local_site::LocalSite,
+    local_site_rate_limit::LocalSiteRateLimit,
     local_user::{LocalUser, LocalUserSettings},
     person::{Person, PersonSafe},
     post::Post,
@@ -85,7 +87,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 language: Language,
+  pub unread_comments: i64,       // Left join to PersonPostAggregates
 }
 
 #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone)]
@@ -115,6 +117,8 @@ pub struct RegistrationApplicationView {
 #[derive(Debug, Serialize, Deserialize, Clone)]
 pub struct SiteView {
   pub site: Site,
+  pub local_site: LocalSite,
+  pub local_site_rate_limit: LocalSiteRateLimit,
   pub counts: SiteAggregates,
 }