Fix object search depending on embeded object
[akkoma] / test / web / mastodon_api / status_view_test.exs
index ad6344006052519bc4ac19d8e0499f622516f2cf..a02c7c21049edb73a25d60653d239b3343cf162f 100644 (file)
@@ -61,7 +61,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
       |> Map.put("content", nil)
 
     Object.change(note_object, %{data: data})
-    |> Repo.update()
+    |> Object.update_and_set_cache()
 
     User.get_cached_by_ap_id(note.data["actor"])