Skip to content

Commit

Permalink
Merge pull request #1479 from LemmyNet/fix_extra_categories
Browse files Browse the repository at this point in the history
Remove extra category_id s . Fixes #1429
  • Loading branch information
Nutomic authored Mar 4, 2021
2 parents ca3c126 + a1c7584 commit f7aa97d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions crates/api_structs/src/community.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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,
}
Expand Down
3 changes: 0 additions & 3 deletions crates/routes/src/feeds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f7aa97d

Please sign in to comment.