Allow editing blogs with custom_domain

n.b.: no validation yet
This commit is contained in:
Igor Galić
2019-08-20 12:24:36 +02:00
parent df47cddb87
commit 064dd79eef
2 changed files with 13 additions and 1 deletions
+2
View File
@@ -333,6 +333,7 @@ pub struct EditForm {
pub summary: String,
pub icon: Option<i32>,
pub banner: Option<i32>,
pub custom_domain: Option<Host>,
}
#[get("/~/<name>/edit")]
@@ -359,6 +360,7 @@ pub fn edit(name: String, rockets: PlumeRocket) -> Result<Ructe, ErrorPage> {
summary: blog.summary.clone(),
icon: blog.icon_id,
banner: blog.banner_id,
custom_domain: blog.custom_domain.clone(),
},
ValidationErrors::default()
)))