diff options
| author | Francis Dinh <normandy@firemail.cc> | 2018-04-25 00:46:28 -0400 |
|---|---|---|
| committer | Francis Dinh <normandy@firemail.cc> | 2018-04-25 00:46:28 -0400 |
| commit | 9e0dd21ed637ec7b884570b2ad8705b5fac72580 (patch) | |
| tree | 6efae2883556ee499dcefb0083412701b501f3e8 /test/web/activity_pub/activity_pub_test.exs | |
| parent | 0df1a4efc841af4a12f45c1551f372d867ff7e1d (diff) | |
| parent | d4a54a90c9ae39947c71876d4d2988a05a02d7a1 (diff) | |
| download | pleroma-9e0dd21ed637ec7b884570b2ad8705b5fac72580.tar.gz pleroma-9e0dd21ed637ec7b884570b2ad8705b5fac72580.zip | |
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into feature/unrepeats
Diffstat (limited to 'test/web/activity_pub/activity_pub_test.exs')
| -rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index e3258ed4e..31ac10d70 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -83,16 +83,18 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do describe "create activities" do test "removes doubled 'to' recipients" do + user = insert(:user) + {:ok, activity} = ActivityPub.create(%{ to: ["user1", "user1", "user2"], - actor: %User{ap_id: "1"}, + actor: user, context: "", object: %{} }) assert activity.data["to"] == ["user1", "user2"] - assert activity.actor == "1" + assert activity.actor == user.ap_id assert activity.recipients == ["user1", "user2"] end end |
