Add a source property to posts

To store the Markdown
This commit is contained in:
Bat
2018-09-06 20:00:55 +01:00
parent b99e34f624
commit 7152d714ae
6 changed files with 26 additions and 3 deletions
+2 -1
View File
@@ -155,7 +155,8 @@ fn create(blog_name: String, data: LenientForm<NewPostForm>, user: User, conn: D
},
ap_url: "".to_string(),
creation_date: None,
subtitle: form.subtitle.clone()
subtitle: form.subtitle.clone(),
source: form.content.clone(),
});
let post = post.update_ap_url(&*conn);
PostAuthor::insert(&*conn, NewPostAuthor {