Merge remote-tracking branch 'upstream/develop' into refactor/following-relationships
[akkoma] / test / web / mastodon_api / controllers / account_controller_test.exs
index 00c83fd7b267495706a6ba1c486f1639848be0f9..8fc2d93005f5cda6ec224ff92eaf078771b19581 100644 (file)
@@ -471,7 +471,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
 
       conn =
         build_conn()
-        |> assign(:user, follower)
+        |> assign(:user, User.get_cached_by_id(follower.id))
         |> post("/api/v1/accounts/#{followed.id}/follow?reblogs=true")
 
       assert %{"showing_reblogs" => true} = json_response(conn, 200)