From a1c7584875581a055dd8f5d1159577d4b9226e8b Mon Sep 17 00:00:00 2001 From: Dessalines 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 fbbf2e403..ee349cb04 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 40d80f25a..105f9662d 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,