Add a source property to posts
To store the Markdown
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user