Serialize article title in AP

This commit is contained in:
Bat 2018-05-04 13:12:02 +01:00
parent 92b4dea739
commit 0ef12ff0f5

View file

@ -95,12 +95,12 @@ impl Object for Post {
"type": "Article", "type": "Article",
"id": self.compute_id(conn), "id": self.compute_id(conn),
"attributedTo": self.get_authors(conn)[0].compute_id(conn), "attributedTo": self.get_authors(conn)[0].compute_id(conn),
"name": self.title,
"content": self.content, "content": self.content,
"actor": self.get_authors(conn)[0].compute_id(conn), "actor": self.get_authors(conn)[0].compute_id(conn),
"published": self.creation_date, "published": self.creation_date,
// TODO: "image": "image", // TODO: "image": "image",
// TODO: "preview": "preview", // TODO: "preview": "preview",
// TODO: "published": "published",
// TODO: "replies": "replies", // TODO: "replies": "replies",
// TODO: "summary": "summary", // TODO: "summary": "summary",
"tag": [], "tag": [],