Attribute posts to one actor only

This commit is contained in:
Bat 2018-05-04 12:39:11 +01:00
parent c282246bf2
commit 92b4dea739
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,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>>(),
"attributedTo": self.get_authors(conn)[0].compute_id(conn),
"content": self.content,
"actor": self.get_authors(conn)[0].compute_id(conn),
"published": self.creation_date,