diff options
| author | lambda <lain@soykaf.club> | 2019-04-02 12:43:28 +0000 |
|---|---|---|
| committer | lambda <lain@soykaf.club> | 2019-04-02 12:43:28 +0000 |
| commit | b95cf3d49041e42e8ddabe48592556a5a58f7b6f (patch) | |
| tree | 77d7f9b5336964cbb8badd471a8e5ba06b5c4b1f /test/web/activity_pub | |
| parent | bd961a3badaf7aa7ffc97ab92a6b04367d1c514b (diff) | |
| parent | 20c619f85f7ccd69469eb9977b6f2805edd18525 (diff) | |
| download | pleroma-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.exs | 4 |
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 |
