From a1c7584875581a055dd8f5d1159577d4b9226e8b Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Wed, 3 Mar 2021 23:44:07 -0500
Subject: [PATCH] Remove extra category_id s . Fixes #1429

---
 crates/api_structs/src/community.rs | 2 --
 crates/routes/src/feeds.rs          | 3 ---
 2 files changed, 5 deletions(-)

diff --git a/crates/api_structs/src/community.rs b/crates/api_structs/src/community.rs
index fbbf2e40..ee349cb0 100644
--- a/crates/api_structs/src/community.rs
+++ b/crates/api_structs/src/community.rs
@@ -27,7 +27,6 @@ pub struct CreateCommunity {
   pub description: Option<String>,
   pub icon: Option<String>,
   pub banner: Option<String>,
-  pub category_id: i32,
   pub nsfw: bool,
   pub auth: String,
 }
@@ -88,7 +87,6 @@ pub struct EditCommunity {
   pub description: Option<String>,
   pub icon: Option<String>,
   pub banner: Option<String>,
-  pub category_id: i32,
   pub nsfw: bool,
   pub auth: String,
 }
diff --git a/crates/routes/src/feeds.rs b/crates/routes/src/feeds.rs
index 40d80f25..105f9662 100644
--- a/crates/routes/src/feeds.rs
+++ b/crates/routes/src/feeds.rs
@@ -396,9 +396,6 @@ fn create_post_items(posts: Vec<PostView>) -> Result<Vec<Item>, LemmyError> {
       p.community.name
     );
 
-    // TODO: for category we should just put the name of the category, but then we would have
-    //       to read each community from the db
-
     // TODO add images
     let mut description = format!("submitted by <a href=\"{}\">{}</a> to <a href=\"{}\">{}</a><br>{} points | <a href=\"{}\">{} comments</a>",
     p.creator.actor_id,
-- 
2.44.1