]> Untitled Git - lemmy.git/blobdiff - crates/api_common/src/person.rs
Clean up reporting (#1776)
[lemmy.git] / crates / api_common / src / person.rs
index a63e55d7efa0e45fc007c5474ddf91fd1dd0b165..c71cf540ba4698ecc4e68f96ad205a8c152bbf52 100644 (file)
@@ -253,15 +253,15 @@ pub struct PrivateMessageResponse {
   pub private_message_view: PrivateMessageView,
 }
 
-#[derive(Serialize, Deserialize, Debug)]
+#[derive(Deserialize)]
 pub struct GetReportCount {
-  pub community: Option<CommunityId>,
+  pub community_id: Option<CommunityId>,
   pub auth: String,
 }
 
-#[derive(Serialize, Deserialize, Clone, Debug)]
+#[derive(Serialize, Clone)]
 pub struct GetReportCountResponse {
-  pub community: Option<CommunityId>,
+  pub community_id: Option<CommunityId>,
   pub comment_reports: i64,
   pub post_reports: i64,
 }