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
1 changed files with 1 additions and 0 deletions

View File

@ -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::<Vec<String>>(),
"content": self.content,
// TODO: "image": "image",