Use the creation date from ActivityPub when fetching remote articles

This commit is contained in:
Bat
2018-07-27 00:29:21 +02:00
parent 0314629d99
commit 812b76b0de
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -142,7 +142,8 @@ fn create(blog_name: String, data: LenientForm<NewPostForm>, user: User, conn: D
content: SafeString::new(&content),
published: true,
license: form.license.to_string(),
ap_url: "".to_string()
ap_url: "".to_string(),
creation_date: None
});
let post = post.update_ap_url(&*conn);
PostAuthor::insert(&*conn, NewPostAuthor {