summaryrefslogtreecommitdiff
path: root/test/tasks/relay_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-04-25 13:41:10 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-04-25 13:41:10 +0700
commitc157e27a000a12dc8f660c056744a6611beb01b1 (patch)
tree36ae4721a1cb92983c7a8fed41b737e0a5a57486 /test/tasks/relay_test.exs
parente8c2f9a73a37636a9a8ed5c2998617b841f482da (diff)
parent3789945784a331790d73f69b407751df9f7d6e8f (diff)
downloadpleroma-c157e27a000a12dc8f660c056744a6611beb01b1.tar.gz
pleroma-c157e27a000a12dc8f660c056744a6611beb01b1.zip
Merge branch 'develop' into feature/disable-account
Diffstat (limited to 'test/tasks/relay_test.exs')
-rw-r--r--test/tasks/relay_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tasks/relay_test.exs b/test/tasks/relay_test.exs
index 535dc3756..9d260da3e 100644
--- a/test/tasks/relay_test.exs
+++ b/test/tasks/relay_test.exs
@@ -31,7 +31,7 @@ defmodule Mix.Tasks.Pleroma.RelayTest do
local_user = Relay.get_actor()
assert local_user.ap_id =~ "/relay"
- target_user = User.get_by_ap_id(target_instance)
+ target_user = User.get_cached_by_ap_id(target_instance)
refute target_user.local
activity = Utils.fetch_latest_follow(local_user, target_user)
@@ -48,7 +48,7 @@ defmodule Mix.Tasks.Pleroma.RelayTest do
Mix.Tasks.Pleroma.Relay.run(["follow", target_instance])
%User{ap_id: follower_id} = local_user = Relay.get_actor()
- target_user = User.get_by_ap_id(target_instance)
+ target_user = User.get_cached_by_ap_id(target_instance)
follow_activity = Utils.fetch_latest_follow(local_user, target_user)
Mix.Tasks.Pleroma.Relay.run(["unfollow", target_instance])