ActivityPub actions & side-effects in transaction
[akkoma] / test / web / activity_pub / activity_pub_controller_test.exs
index 1aa73d75cf675efee5dfd1df83028840b92324b5..ba2ce1dd9157e5ea3ac854398a11208968969a1a 100644 (file)
@@ -298,7 +298,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
       assert json_response(conn1, :ok)
       assert Enum.any?(conn1.resp_headers, &(&1 == {"x-cache", "MISS from Pleroma"}))
 
-      Activity.delete_by_ap_id(activity.object.data["id"])
+      Activity.delete_all_by_object_ap_id(activity.object.data["id"])
 
       conn2 =
         conn