From 0ef12ff0f566f618957d06b66148178b16c300db Mon Sep 17 00:00:00 2001 From: Bat Date: Fri, 4 May 2018 13:12:02 +0100 Subject: [PATCH] Serialize article title in AP --- src/models/posts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/posts.rs b/src/models/posts.rs index 7c7c18dd..7447d856 100644 --- a/src/models/posts.rs +++ b/src/models/posts.rs @@ -95,12 +95,12 @@ impl Object for Post { "type": "Article", "id": self.compute_id(conn), "attributedTo": self.get_authors(conn)[0].compute_id(conn), + "name": self.title, "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", // TODO: "replies": "replies", // TODO: "summary": "summary", "tag": [],