diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-18 18:18:27 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-18 18:18:27 +0200 |
commit | 8e02fa100f9f207253a35fbfd92e6e8f9b585435 (patch) | |
tree | 2d142ec92ddc6c8e4234ed561cb8e02a218e54ad /test | |
parent | 36ec998dd71d09462f828cad093cfe68018cf9f3 (diff) | |
download | pleroma-8e02fa100f9f207253a35fbfd92e6e8f9b585435.tar.gz |
Add categories to ostatus output.
Diffstat (limited to 'test')
-rw-r--r-- | test/support/factory.ex | 3 | ||||
-rw-r--r-- | test/web/ostatus/activity_representer_test.exs | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex index ffc9c56dc..3cf35e3bc 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -25,7 +25,8 @@ defmodule Pleroma.Factory do "published_at" => DateTime.utc_now() |> DateTime.to_iso8601, "likes" => [], "like_count" => 0, - "context" => "2hu" + "context" => "2hu", + "tag" => ["2hu"] } %Pleroma.Object{ diff --git a/test/web/ostatus/activity_representer_test.exs b/test/web/ostatus/activity_representer_test.exs index 969b2a854..7179cfb71 100644 --- a/test/web/ostatus/activity_representer_test.exs +++ b/test/web/ostatus/activity_representer_test.exs @@ -27,6 +27,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do <ostatus:conversation>#{note_activity.data["context"]}</ostatus:conversation> <link href="#{note_activity.data["context"]}" rel="ostatus:conversation" /> <link type="application/atom+xml" href="#{note_activity.data["object"]["id"]}" rel="self" /> + <category term="2hu"/> <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/> """ |