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/mastodon_api | |
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/mastodon_api')
-rw-r--r-- | test/web/mastodon_api/status_view_test.exs | 2 |
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) |