From 2d439034ca801b704536cb05483e012d62c2d52e Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sat, 30 Mar 2024 12:55:22 +0000 Subject: [PATCH] Ensure that spoof-inserted does not time out --- lib/mix/tasks/pleroma/security.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mix/tasks/pleroma/security.ex b/lib/mix/tasks/pleroma/security.ex index dc1f667d7..f039e0980 100644 --- a/lib/mix/tasks/pleroma/security.ex +++ b/lib/mix/tasks/pleroma/security.ex @@ -237,7 +237,7 @@ defmodule Mix.Tasks.Pleroma.Security do |> where([o, a], fragment("NOT (? \\? 'id') OR ?->>'id' IS NULL", a.data, a.data)) |> select([o, a], {a.id, fragment("?->>'id'", o.data)}) |> order_by([o, a], a.id) - |> Pleroma.Repo.all() + |> Pleroma.Repo.all(timeout: :infinity) end defp search_sus_notes_by_id_patterns() do @@ -272,7 +272,7 @@ defmodule Mix.Tasks.Pleroma.Security do ) |> select([o, a], {a.id, fragment("?->>'id'", o.data)}) |> order_by([o, a], a.id) - |> Pleroma.Repo.all() + |> Pleroma.Repo.all(timeout: :infinity) end defp search_bogus_local_users() do @@ -280,7 +280,7 @@ defmodule Mix.Tasks.Pleroma.Security do |> where([u], u.local == false and like(u.ap_id, ^local_id_pattern())) |> order_by([u], u.ap_id) |> select([u], u.ap_id) - |> Pleroma.Repo.all() + |> Pleroma.Repo.all(timeout: :infinity) end # +-----------------------------------+