]> Untitled Git - lemmy.git/commitdiff
Remove extra category_id s . Fixes #1429
authorDessalines <tyhou13@gmx.com>
Thu, 4 Mar 2021 04:44:07 +0000 (23:44 -0500)
committerDessalines <tyhou13@gmx.com>
Thu, 4 Mar 2021 04:44:07 +0000 (23:44 -0500)
crates/api_structs/src/community.rs
crates/routes/src/feeds.rs

index fbbf2e4035d1aa522138e9ecf2b75becd345267e..ee349cb0416292d6fb475ca304b90463d3fd10e1 100644 (file)
@@ -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,
 }
index 40d80f25ac2bfd83646234ef0ffca9be74e5807c..105f9662d9bb3cab3bf9a54398a78126bee6224b 100644 (file)
@@ -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,