summaryrefslogtreecommitdiff
path: root/test/web/activity_pub
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-04-02 12:43:28 +0000
committerlambda <lain@soykaf.club>2019-04-02 12:43:28 +0000
commitb95cf3d49041e42e8ddabe48592556a5a58f7b6f (patch)
tree77d7f9b5336964cbb8badd471a8e5ba06b5c4b1f /test/web/activity_pub
parentbd961a3badaf7aa7ffc97ab92a6b04367d1c514b (diff)
parent20c619f85f7ccd69469eb9977b6f2805edd18525 (diff)
downloadpleroma-b95cf3d49041e42e8ddabe48592556a5a58f7b6f.tar.gz
pleroma-b95cf3d49041e42e8ddabe48592556a5a58f7b6f.zip
Merge branch 'get_by_id' into 'develop'
Replace `Repo.get_by` with existing functions See merge request pleroma/pleroma!1010
Diffstat (limited to 'test/web/activity_pub')
-rw-r--r--test/web/activity_pub/activity_pub_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs
index 7969c8035..46b4cf7b6 100644
--- a/test/web/activity_pub/activity_pub_test.exs
+++ b/test/web/activity_pub/activity_pub_test.exs
@@ -638,8 +638,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
describe "fetch the latest Follow" do
test "fetches the latest Follow activity" do
%Activity{data: %{"type" => "Follow"}} = activity = insert(:follow_activity)
- follower = Repo.get_by(User, ap_id: activity.data["actor"])
- followed = Repo.get_by(User, ap_id: activity.data["object"])
+ follower = User.get_by_ap_id(activity.data["actor"])
+ followed = User.get_by_ap_id(activity.data["object"])
assert activity == Utils.fetch_latest_follow(follower, followed)
end