From b92009f4877143319ddbc79bbd10b839440a5247 Mon Sep 17 00:00:00 2001 From: Bat Date: Thu, 3 May 2018 23:12:28 +0100 Subject: [PATCH] Add some other properties to Articles --- src/models/posts.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/models/posts.rs b/src/models/posts.rs index 86d9a40e..db40f608 100644 --- a/src/models/posts.rs +++ b/src/models/posts.rs @@ -96,6 +96,8 @@ impl Object for Post { "id": self.compute_id(conn), "attributedTo": self.get_authors(conn).into_iter().map(|a| a.compute_id(conn)).collect::>(), "content": self.content, + "actor": self.get_authors(conn)[0].compute_id(conn), + "published": self.creation_date, // TODO: "image": "image", // TODO: "preview": "preview", // TODO: "published": "published", @@ -104,7 +106,8 @@ impl Object for Post { "tag": [], // TODO: "updated": "updated", // TODO: "url": "url", - "to": to + "to": to, + "cc": [] }) } }