Fix Activity.delete_all_by_object_ap_id/1 timeout so users can be deleted
authorAlex Gleason <alex@alexgleason.me>
Mon, 12 Jul 2021 21:20:15 +0000 (16:20 -0500)
committerAlex Gleason <alex@alexgleason.me>
Mon, 12 Jul 2021 21:20:15 +0000 (16:20 -0500)
lib/pleroma/activity.ex

index 6542e684e1c82ef04794010889b4b774188a331a..0d2cb91cdf47044d66f7ed12fd34c8cccf46055c 100644 (file)
@@ -286,7 +286,7 @@ defmodule Pleroma.Activity do
     |> Queries.by_object_id()
     |> Queries.exclude_type("Delete")
     |> select([u], u)
-    |> Repo.delete_all()
+    |> Repo.delete_all(timeout: :infinity)
     |> elem(1)
     |> Enum.find(fn
       %{data: %{"type" => "Create", "object" => ap_id}} when is_binary(ap_id) -> ap_id == id