use crate::sensitive::Sensitive;
use lemmy_db_schema::{
- newtypes::{CommentId, CommunityId, DbUrl, PostId, PostReportId},
+ newtypes::{CommentId, CommunityId, DbUrl, LanguageId, PostId, PostReportId},
ListingType,
SortType,
};
pub body: Option<String>,
pub honeypot: Option<String>,
pub nsfw: Option<bool>,
+ pub language_id: Option<LanguageId>,
pub auth: Sensitive<String>,
}
pub url: Option<Url>,
pub body: Option<String>,
pub nsfw: Option<bool>,
+ pub language_id: Option<LanguageId>,
pub auth: Sensitive<String>,
}
pub metadata: SiteMetadata,
}
-#[derive(Debug, Deserialize, Serialize, PartialEq, Clone)]
+#[derive(Debug, Deserialize, Serialize, PartialEq, Eq, Clone)]
pub struct SiteMetadata {
pub title: Option<String>,
pub description: Option<String>,