diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-04-22 15:11:13 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-04-22 15:11:13 +0200 |
commit | 04fb4f9c47b273256d628eefa5bd8af77cca31fb (patch) | |
tree | 73b5915182c035febea0f16e626a1815e767b37c /test | |
parent | 923584d0467b2213bef0d3d78c8713f34b7b21d7 (diff) | |
download | pleroma-04fb4f9c47b273256d628eefa5bd8af77cca31fb.tar.gz |
Add poco data to user.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/ostatus/feed_representer_test.exs | 2 | ||||
-rw-r--r-- | test/web/ostatus/user_representer_test.exs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/web/ostatus/feed_representer_test.exs b/test/web/ostatus/feed_representer_test.exs index 1b0a10030..a5f28f6d5 100644 --- a/test/web/ostatus/feed_representer_test.exs +++ b/test/web/ostatus/feed_representer_test.exs @@ -22,7 +22,7 @@ defmodule Pleroma.Web.OStatus.FeedRepresenterTest do |> :xmerl.export_simple_content(:xmerl_xml) expected = """ - <feed xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/"> + <feed xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:poco="http://portablecontacts.net/spec/1.0"> <id>#{OStatus.feed_path(user)}</id> <title>#{user.nickname}'s timeline</title> <updated>#{most_recent_update}</updated> diff --git a/test/web/ostatus/user_representer_test.exs b/test/web/ostatus/user_representer_test.exs index a401a56da..80ac8181a 100644 --- a/test/web/ostatus/user_representer_test.exs +++ b/test/web/ostatus/user_representer_test.exs @@ -15,6 +15,9 @@ defmodule Pleroma.Web.OStatus.UserRepresenterTest do <id>#{user.ap_id}</id> <activity:object>http://activitystrea.ms/schema/1.0/person</activity:object> <uri>#{user.ap_id}</uri> + <poco:preferredUsername>#{user.nickname}</poco:preferredUsername> + <poco:displayName>#{user.name}</poco:displayName> + <poco:note>#{user.bio}</poco:note> <name>#{user.nickname}</name> <link rel="avatar" href="#{User.avatar_url(user)}" /> """ |