Merge branch 'develop' into kaniini/pleroma-feature/activitypub-endpoints
[akkoma] / test / web / mastodon_api / status_view_test.exs
index 9e2bc3c185ce8bf4eb2d70b1aaf4b412ed76b604..a58f729a617a85e1bcf99442dc4eb3ad2f5108cb 100644 (file)
@@ -58,10 +58,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
     incoming = File.read!("test/fixtures/incoming_reply_mastodon.xml")
     # a user with this ap id might be in the cache.
     recipient = "https://pleroma.soykaf.com/users/lain"
-    user = User.get_cached_by_ap_id(recipient) || insert(:user, %{ap_id: recipient})
-
-    # invalidate the cache
-    User.invalidate_cache(user)
+    user = insert(:user, %{ap_id: recipient})
 
     {:ok, [activity]} = OStatus.handle_incoming(incoming)