From: Alex Gleason Date: Mon, 12 Jul 2021 21:20:15 +0000 (-0500) Subject: Fix Activity.delete_all_by_object_ap_id/1 timeout so users can be deleted X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=9a0cb34c8c3a3c47ad5074bd73ad5369ee852192;p=akkoma Fix Activity.delete_all_by_object_ap_id/1 timeout so users can be deleted --- diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index 6542e684e..0d2cb91cd 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -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