From de1a5f6224dd5727a163d8d87527facaa05a812c Mon Sep 17 00:00:00 2001 From: TudbuT Date: Tue, 29 Oct 2024 07:26:36 +0100 Subject: [PATCH] Backfetch without a second layer of indirection --- lib/pleroma/workers/remote_fetcher_worker.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/workers/remote_fetcher_worker.ex b/lib/pleroma/workers/remote_fetcher_worker.ex index 241d76f3d..05e101166 100644 --- a/lib/pleroma/workers/remote_fetcher_worker.ex +++ b/lib/pleroma/workers/remote_fetcher_worker.ex @@ -17,7 +17,8 @@ def perform(%Job{args: %{"op" => "fetch_outbox", "id" => address}}) do with {:ok, outbox} <- ActivityPub.fetch_and_prepare_outbox_from_ap_id(address) do Enum.each(Enum.reverse(outbox), fn {ap_id, _} -> if is_nil(Object.get_cached_by_ap_id(ap_id)) do - enqueue("fetch_remote", %{ + perform(%{ + "op" => "fetch_remote", "id" => ap_id, "depth" => 1 })