From 92b4dea7397d82fca29a2f3b722db54cd43bd51e Mon Sep 17 00:00:00 2001 From: Bat Date: Fri, 4 May 2018 12:39:11 +0100 Subject: [PATCH] Attribute posts to one actor only --- src/models/posts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/posts.rs b/src/models/posts.rs index afe20d6e..7c7c18dd 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,