From: Roger Braun Date: Sun, 3 Dec 2017 12:34:17 +0000 (+0100) Subject: OStatus: Add user bio as summary field X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d08a34e88b0d42f403755e1bdbaf015784ebbe74;p=akkoma OStatus: Add user bio as summary field Fixes problem with bio federation. --- 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 @@ defmodule Pleroma.Web.OStatus.UserRepresenter 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 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do #{user.nickname} #{user.name} #{user.bio} + #{user.bio} #{user.nickname} """