diff options
author | lain <lain@soykaf.club> | 2018-02-18 13:58:52 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-02-18 13:58:52 +0100 |
commit | 8ca66b596120024b5141ce68c7614e762358c2a1 (patch) | |
tree | 8e5250f9c139af4dc442d3fcf6247f7197ae3309 /test | |
parent | 912ca56e59884de2111272efc74bf75894f5ca02 (diff) | |
download | pleroma-8ca66b596120024b5141ce68c7614e762358c2a1.tar.gz pleroma-8ca66b596120024b5141ce68c7614e762358c2a1.zip |
ActivityPub: Add conversation id.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/activity_pub/transmogrifier_test.exs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs index e2db615eb..ec608a86a 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -120,13 +120,14 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do assert Enum.member?(object["tag"], expected_mention) end - test "it adds the json-ld context" do + test "it adds the json-ld context and the conversation property" do user = insert(:user) {:ok, activity} = CommonAPI.post(user, %{"status" => "hey"}) {:ok, modified} = Transmogrifier.prepare_outgoing(activity.data) assert modified["@context"] == "https://www.w3.org/ns/activitystreams" + assert modified["object"]["conversation"] == modified["context"] end test "it sets the 'attributedTo' property to the actor of the object if it doesn't have one" do |