OStatus: Add user bio as summary field

Fixes problem with bio federation.
This commit is contained in:
Roger Braun 2017-12-03 13:34:17 +01:00
parent 50dca016f2
commit d08a34e88b
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@ defmodule Pleroma.Web.OStatus.UserRepresenter do
{:"poco:preferredUsername", [nickname]}, {:"poco:preferredUsername", [nickname]},
{:"poco:displayName", [name]}, {:"poco:displayName", [name]},
{:"poco:note", [bio]}, {:"poco:note", [bio]},
{:summary, [bio]},
{:name, [nickname]}, {:name, [nickname]},
{:link, [rel: 'avatar', href: avatar_url], []} {:link, [rel: 'avatar', href: avatar_url], []}
] ++ banner ] ++ banner

View file

@ -18,6 +18,7 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do
<poco:preferredUsername>#{user.nickname}</poco:preferredUsername> <poco:preferredUsername>#{user.nickname}</poco:preferredUsername>
<poco:displayName>#{user.name}</poco:displayName> <poco:displayName>#{user.name}</poco:displayName>
<poco:note>#{user.bio}</poco:note> <poco:note>#{user.bio}</poco:note>
<summary>#{user.bio}</summary>
<name>#{user.nickname}</name> <name>#{user.nickname}</name>
<link rel="avatar" href="#{User.avatar_url(user)}" /> <link rel="avatar" href="#{User.avatar_url(user)}" />
""" """