OStatus: Add user bio as summary field
authorRoger Braun <roger@rogerbraun.net>
Sun, 3 Dec 2017 12:34:17 +0000 (13:34 +0100)
committerRoger Braun <roger@rogerbraun.net>
Sun, 3 Dec 2017 12:34:17 +0000 (13:34 +0100)
Fixes problem with bio federation.

lib/pleroma/web/ostatus/user_representer.ex
test/web/ostatus/user_representer_test.exs

index 14f78a4ed7babea5ee50c81a09efb6c6d2258448..20ebb3e08b10d6f4b2c326978ff2b3d30e56cbd7 100644 (file)
@@ -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
index a4afc2cf78efbb0badb543f2bb249167fac4c165..d5d70f5c61a53c8d4704a1e8ae487ad58e62583e 100644 (file)
@@ -18,6 +18,7 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do
     <poco:preferredUsername>#{user.nickname}</poco:preferredUsername>
     <poco:displayName>#{user.name}</poco:displayName>
     <poco:note>#{user.bio}</poco:note>
+    <summary>#{user.bio}</summary>
     <name>#{user.nickname}</name>
     <link rel="avatar" href="#{User.avatar_url(user)}" />
     """