Merge branch 'get-cached-everywhere' into 'develop'
[akkoma] / test / web / mastodon_api / status_view_test.exs
index a02c7c21049edb73a25d60653d239b3343cf162f..fde931b4315ff498d1ba45db90d73322619f8c92 100644 (file)
@@ -178,7 +178,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
 
     status = StatusView.render("status.json", %{activity: activity})
 
-    actor = User.get_by_ap_id(activity.actor)
+    actor = User.get_cached_by_ap_id(activity.actor)
 
     assert status.mentions ==
              Enum.map([user, actor], fn u -> AccountView.render("mention.json", %{user: u}) end)