diff --git a/src/models/posts.rs b/src/models/posts.rs index afe20d6..7c7c18d 100644 --- a/src/models/posts.rs +++ b/src/models/posts.rs @@ -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::>(), + "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,