Add a cover field to posts

Referencing the media to use to illustrate the article
This commit is contained in:
Baptiste Gelez
2018-10-30 19:13:25 +01:00
parent 9f1b37648e
commit ab5edbc6a5
7 changed files with 15 additions and 1 deletions
+1
View File
@@ -309,6 +309,7 @@ fn create(blog_name: String, data: LenientForm<NewPostForm>, user: User, conn: D
creation_date: None,
subtitle: form.subtitle.clone(),
source: form.content.clone(),
cover_id: None, // TODO
});
let post = post.update_ap_url(&*conn);
PostAuthor::insert(&*conn, NewPostAuthor {