diff options
| author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2020-07-09 10:32:24 +0000 |
|---|---|---|
| committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2020-07-09 10:32:24 +0000 |
| commit | 68036f5a3b7b609f4464650c2ae40b9679d45291 (patch) | |
| tree | 25e0f0f372ea0f77719bb253dee13a4cd831de54 /test/web/activity_pub/relay_test.exs | |
| parent | 34d6009d82ef8949d689ed1f7c4ec2c2fad254c7 (diff) | |
| parent | 00e54f8fe7af098ba829f7f7cd5511569dcd1c0a (diff) | |
| download | pleroma-68036f5a3b7b609f4464650c2ae40b9679d45291.tar.gz pleroma-68036f5a3b7b609f4464650c2ae40b9679d45291.zip | |
Merge branch 'follow-pipeline' into 'develop'
Handle `Follow` activities with the pipeline
See merge request pleroma/pleroma!2734
Diffstat (limited to 'test/web/activity_pub/relay_test.exs')
| -rw-r--r-- | test/web/activity_pub/relay_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/activity_pub/relay_test.exs b/test/web/activity_pub/relay_test.exs index b3b573c9b..9d657ac4f 100644 --- a/test/web/activity_pub/relay_test.exs +++ b/test/web/activity_pub/relay_test.exs @@ -7,8 +7,8 @@ defmodule Pleroma.Web.ActivityPub.RelayTest do alias Pleroma.Activity alias Pleroma.User - alias Pleroma.Web.ActivityPub.ActivityPub alias Pleroma.Web.ActivityPub.Relay + alias Pleroma.Web.CommonAPI import ExUnit.CaptureLog import Pleroma.Factory @@ -53,8 +53,7 @@ defmodule Pleroma.Web.ActivityPub.RelayTest do test "returns activity" do user = insert(:user) service_actor = Relay.get_actor() - ActivityPub.follow(service_actor, user) - Pleroma.User.follow(service_actor, user) + CommonAPI.follow(service_actor, user) assert "#{user.ap_id}/followers" in User.following(service_actor) assert {:ok, %Activity{} = activity} = Relay.unfollow(user.ap_id) assert activity.actor == "#{Pleroma.Web.Endpoint.url()}/relay" @@ -74,6 +73,7 @@ defmodule Pleroma.Web.ActivityPub.RelayTest do assert Relay.publish(activity) == {:error, "Not implemented"} end + @tag capture_log: true test "returns error when activity not public" do activity = insert(:direct_note_activity) assert Relay.publish(activity) == {:error, false} |
