mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-03 09:40:16 +00:00
Merge pull request #1479 from LemmyNet/fix_extra_categories
Remove extra category_id s . Fixes #1429
This commit is contained in:
commit
f7aa97d45e
@ -27,7 +27,6 @@ pub struct CreateCommunity {
|
|||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
pub icon: Option<String>,
|
pub icon: Option<String>,
|
||||||
pub banner: Option<String>,
|
pub banner: Option<String>,
|
||||||
pub category_id: i32,
|
|
||||||
pub nsfw: bool,
|
pub nsfw: bool,
|
||||||
pub auth: String,
|
pub auth: String,
|
||||||
}
|
}
|
||||||
@ -88,7 +87,6 @@ pub struct EditCommunity {
|
|||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
pub icon: Option<String>,
|
pub icon: Option<String>,
|
||||||
pub banner: Option<String>,
|
pub banner: Option<String>,
|
||||||
pub category_id: i32,
|
|
||||||
pub nsfw: bool,
|
pub nsfw: bool,
|
||||||
pub auth: String,
|
pub auth: String,
|
||||||
}
|
}
|
||||||
|
@ -396,9 +396,6 @@ fn create_post_items(posts: Vec<PostView>) -> Result<Vec<Item>, LemmyError> {
|
|||||||
p.community.name
|
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
|
// TODO add images
|
||||||
let mut description = format!("submitted by <a href=\"{}\">{}</a> to <a href=\"{}\">{}</a><br>{} points | <a href=\"{}\">{} comments</a>",
|
let mut description = format!("submitted by <a href=\"{}\">{}</a> to <a href=\"{}\">{}</a><br>{} points | <a href=\"{}\">{} comments</a>",
|
||||||
p.creator.actor_id,
|
p.creator.actor_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user