summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-04-02 17:47:52 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-04-02 17:47:52 +0700
commit9a59c26619bada93e238f52e9432a93e54c04b5e (patch)
treeafe2b38bd65a6fded0178500dbd899d92f1fce16 /test/web/mastodon_api
parent88d3cb44c3adc234ee828a8b50bc0c3857eb85a9 (diff)
downloadpleroma-9a59c26619bada93e238f52e9432a93e54c04b5e.tar.gz
pleroma-9a59c26619bada93e238f52e9432a93e54c04b5e.zip
replace `Repo.get_by(User, ap_id: ap_id)` with `User.get_by_ap_id(ap_id)`
Diffstat (limited to 'test/web/mastodon_api')
-rw-r--r--test/web/mastodon_api/status_view_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index e1c9b2c8f..8db92ac16 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -175,7 +175,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
status = StatusView.render("status.json", %{activity: activity})
- actor = Repo.get_by(User, ap_id: activity.actor)
+ actor = User.get_by_ap_id(activity.actor)
assert status.mentions ==
Enum.map([user, actor], fn u -> AccountView.render("mention.json", %{user: u}) end)