Add an ID to ActivityPub Articles

Maybe it will work better
This commit is contained in:
Bat 2018-05-03 22:46:40 +01:00
parent d587d18cd4
commit b8a41e71c5

View File

@ -93,6 +93,7 @@ impl Object for Post {
json!({ json!({
"type": "Article", "type": "Article",
"id": self.compute_id(conn),
"attributedTo": self.get_authors(conn).into_iter().map(|a| a.compute_id(conn)).collect::<Vec<String>>(), "attributedTo": self.get_authors(conn).into_iter().map(|a| a.compute_id(conn)).collect::<Vec<String>>(),
"content": self.content, "content": self.content,
// TODO: "image": "image", // TODO: "image": "image",