]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/source/post.rs
Tag posts and comments with language (fixes #440) (#2269)
[lemmy.git] / crates / db_schema / src / source / post.rs
index a69e6a2caea19c2852b580754189b4d7875a3788..7e192a72aeecc4d32f6326a9193423ef9f9ee95f 100644 (file)
@@ -1,4 +1,4 @@
-use crate::newtypes::{CommunityId, DbUrl, PersonId, PostId};
+use crate::newtypes::{CommunityId, DbUrl, LanguageId, PersonId, PostId};
 use serde::{Deserialize, Serialize};
 
 #[cfg(feature = "full")]
@@ -27,6 +27,7 @@ pub struct Post {
   pub thumbnail_url: Option<DbUrl>,
   pub ap_id: DbUrl,
   pub local: bool,
+  pub language_id: LanguageId,
 }
 
 #[derive(Default)]
@@ -51,6 +52,7 @@ pub struct PostForm {
   pub thumbnail_url: Option<Option<DbUrl>>,
   pub ap_id: Option<DbUrl>,
   pub local: Option<bool>,
+  pub language_id: Option<LanguageId>,
 }
 
 #[derive(PartialEq, Debug)]