summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-02-25 18:20:06 +0100
committerlain <lain@soykaf.club>2018-02-25 18:20:06 +0100
commitf61fd00db52d5f1d007a7c37ea7b3d10c4d2a503 (patch)
tree0550ef6614efab524ad265d2c76c7df196968937 /test
parent8a47974217de4f714af11de7e5cb9b13e074d6ba (diff)
downloadpleroma-f61fd00db52d5f1d007a7c37ea7b3d10c4d2a503.tar.gz
pleroma-f61fd00db52d5f1d007a7c37ea7b3d10c4d2a503.zip
Make likes and announces public.
Diffstat (limited to 'test')
-rw-r--r--test/web/ostatus/activity_representer_test.exs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/web/ostatus/activity_representer_test.exs b/test/web/ostatus/activity_representer_test.exs
index 0a66b819a..3ee9034a7 100644
--- a/test/web/ostatus/activity_representer_test.exs
+++ b/test/web/ostatus/activity_representer_test.exs
@@ -121,6 +121,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
#{note_xml}
</activity:object>
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="#{note.data["actor"]}"/>
+ <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/>
"""
announce_xml = ActivityRepresenter.to_simple_form(announce, user)
@@ -156,6 +157,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
<link rel="self" type="application/atom+xml" href="#{like.data["id"]}"/>
<thr:in-reply-to ref="#{note.data["id"]}" />
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="#{note.data["actor"]}"/>
+ <link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/collection" href="http://activityschema.org/collection/public"/>
"""
assert clean(res) == clean(expected)