diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-11-09 10:41:19 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-11-09 10:41:19 +0100 |
commit | f1d27a5fbbe547a78f835bd65b43a652004d708e (patch) | |
tree | 53fd646d727584cb54dc1dfd56b137b01567ff4e /test | |
parent | 41b8a76e969e97aef68e7be1f1cdadcb31ea9b1d (diff) | |
download | pleroma-f1d27a5fbbe547a78f835bd65b43a652004d708e.tar.gz pleroma-f1d27a5fbbe547a78f835bd65b43a652004d708e.zip |
Add actor column to activities.
Diffstat (limited to 'test')
-rw-r--r-- | test/support/factory.ex | 3 | ||||
-rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex index dabb95141..9bbf11f08 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -51,7 +51,8 @@ defmodule Pleroma.Factory do } %Pleroma.Activity{ - data: data + data: data, + actor: data["actor"] } end diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index 2cd33d623..f50509b63 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -52,6 +52,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do test "removes doubled 'to' recipients" do {:ok, activity} = ActivityPub.create(["user1", "user1", "user2"], %User{ap_id: "1"}, "", %{}) assert activity.data["to"] == ["user1", "user2"] + assert activity.actor == "1" end end |