comment_report::CommentReport,
community::CommunitySafe,
language::Language,
+ local_site::LocalSite,
+ local_site_rate_limit::LocalSiteRateLimit,
local_user::{LocalUser, LocalUserSettings},
person::{Person, PersonSafe},
post::Post,
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)]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct SiteView {
pub site: Site,
+ pub local_site: LocalSite,
+ pub local_site_rate_limit: LocalSiteRateLimit,
pub counts: SiteAggregates,
}