From d08a34e88b0d42f403755e1bdbaf015784ebbe74 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 3 Dec 2017 13:34:17 +0100 Subject: [PATCH] OStatus: Add user bio as summary field Fixes problem with bio federation. --- lib/pleroma/web/ostatus/user_representer.ex | 1 + test/web/ostatus/user_representer_test.exs | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/pleroma/web/ostatus/user_representer.ex b/lib/pleroma/web/ostatus/user_representer.ex index 14f78a4ed..20ebb3e08 100644 --- a/lib/pleroma/web/ostatus/user_representer.ex +++ b/lib/pleroma/web/ostatus/user_representer.ex @@ -19,6 +19,7 @@ def to_simple_form(user) do {:"poco:preferredUsername", [nickname]}, {:"poco:displayName", [name]}, {:"poco:note", [bio]}, + {:summary, [bio]}, {:name, [nickname]}, {:link, [rel: 'avatar', href: avatar_url], []} ] ++ banner diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs index a4afc2cf7..d5d70f5c6 100644 --- a/test/web/ostatus/user_representer_test.exs +++ b/test/web/ostatus/user_representer_test.exs @@ -18,6 +18,7 @@ test "returns a user with id, uri, name and link" do #{user.nickname} #{user.name} #{user.bio} + #{user.bio} #{user.nickname} """