diff options
| author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-02 17:01:26 +0700 |
|---|---|---|
| committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-02 17:01:26 +0700 |
| commit | 1b3d92192194baf6b431cd9f0ce58062d1b703d5 (patch) | |
| tree | 2f81ff81c7b039ccbb482e5212af554a8982ac40 /test/web/mastodon_api/notification_view_test.exs | |
| parent | 4212527928020de5b67424f090c67fc20d0844af (diff) | |
| download | pleroma-1b3d92192194baf6b431cd9f0ce58062d1b703d5.tar.gz pleroma-1b3d92192194baf6b431cd9f0ce58062d1b703d5.zip | |
change `Repo.get(User, id)` => `User.get_by_id(id)`
Diffstat (limited to 'test/web/mastodon_api/notification_view_test.exs')
| -rw-r--r-- | test/web/mastodon_api/notification_view_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/notification_view_test.exs b/test/web/mastodon_api/notification_view_test.exs index b826a7e61..dc747e327 100644 --- a/test/web/mastodon_api/notification_view_test.exs +++ b/test/web/mastodon_api/notification_view_test.exs @@ -21,7 +21,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do mentioned_user = insert(:user) {:ok, activity} = CommonAPI.post(user, %{"status" => "hey @#{mentioned_user.nickname}"}) {:ok, [notification]} = Notification.create_notifications(activity) - user = Repo.get(User, user.id) + user = User.get_by_id(user.id) expected = %{ id: to_string(notification.id), |
