diff options
| author | kaniini <nenolod@gmail.com> | 2019-04-22 07:20:43 +0000 |
|---|---|---|
| committer | kaniini <nenolod@gmail.com> | 2019-04-22 07:20:43 +0000 |
| commit | 0b6d1d920e5ca4fe840a8d1cad366cc8cc54360d (patch) | |
| tree | 4cb4fc190215842d6a14c4a202ff2fda32cc223a /test/web/mastodon_api/notification_view_test.exs | |
| parent | 05862ded7a156ad6db16a70ec90045a2149da97d (diff) | |
| parent | b9cdf6d3b9940fded7d6be9f8771fd9c211afdd4 (diff) | |
| download | pleroma-0b6d1d920e5ca4fe840a8d1cad366cc8cc54360d.tar.gz pleroma-0b6d1d920e5ca4fe840a8d1cad366cc8cc54360d.zip | |
Merge branch 'get-cached-everywhere' into 'develop'
Use `User.get_cached*` everywhere
See merge request pleroma/pleroma!1021
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 f2c1eb76c..977ea1e87 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 = User.get_by_id(user.id) + user = User.get_cached_by_id(user.id) expected = %{ id: to_string(notification.id), |
