]> Untitled Git - lemmy.git/blobdiff - crates/api_common/src/community.rs
Hide community v2 (#2055)
[lemmy.git] / crates / api_common / src / community.rs
index 9686172ac8464dbe5394e4457533d52c3beff126..fbfe3c6607d9c507c3293fda15cd2cd878d99c46 100644 (file)
@@ -93,6 +93,14 @@ pub struct EditCommunity {
   pub auth: Sensitive<String>,
 }
 
+#[derive(Debug, Serialize, Deserialize)]
+pub struct HideCommunity {
+  pub community_id: CommunityId,
+  pub hidden: bool,
+  pub reason: Option<String>,
+  pub auth: Sensitive<String>,
+}
+
 #[derive(Debug, Serialize, Deserialize)]
 pub struct DeleteCommunity {
   pub community_id: CommunityId,