Merge remote-tracking branch 'pleroma/develop' into use-jobs-in-webpush
[akkoma] / test / web / mastodon_api / status_view_test.exs
index e1c9b2c8f61a03897673143f77800204d8b346ae..8db92ac160fd43efe0d8cf138d3115eb81eb7db4 100644 (file)
@@ -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)