From: Dessalines Date: Thu, 4 Mar 2021 04:44:07 +0000 (-0500) Subject: Remove extra category_id s . Fixes #1429 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%7Bthis.state.thumbnail%7D?a=commitdiff_plain;h=a1c7584875581a055dd8f5d1159577d4b9226e8b;p=lemmy.git Remove extra category_id s . Fixes #1429 --- 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, pub icon: Option, pub banner: Option, - pub category_id: i32, pub nsfw: bool, pub auth: String, } @@ -88,7 +87,6 @@ pub struct EditCommunity { pub description: Option, pub icon: Option, pub banner: Option, - 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) -> Result, 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 {} to {}
{} points | {} comments", p.creator.actor_id,