From b8a41e71c5d39e5054e973da056f698b6f389580 Mon Sep 17 00:00:00 2001 From: Bat Date: Thu, 3 May 2018 22:46:40 +0100 Subject: [PATCH] Add an ID to ActivityPub Articles Maybe it will work better --- src/models/posts.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/posts.rs b/src/models/posts.rs index 120a760d..86d9a40e 100644 --- a/src/models/posts.rs +++ b/src/models/posts.rs @@ -93,6 +93,7 @@ impl Object for Post { json!({ "type": "Article", + "id": self.compute_id(conn), "attributedTo": self.get_authors(conn).into_iter().map(|a| a.compute_id(conn)).collect::>(), "content": self.content, // TODO: "image": "image",