From 96ba48cdb0bcf12d11002c4eaaee975814f68cb3 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 6 Nov 2022 15:29:34 +0100 Subject: [PATCH] Handle error when fetching object from tombstone Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/transmogrifier.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/federation/activity_pub/transmogrifier.ex b/lib/federation/activity_pub/transmogrifier.ex index 9efa6ccc..2e458056 100644 --- a/lib/federation/activity_pub/transmogrifier.ex +++ b/lib/federation/activity_pub/transmogrifier.ex @@ -201,6 +201,10 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier do {:ok, entity} -> Actions.Delete.delete(entity, Relay.get_actor(), false) + + {:error, err} -> + Logger.warn("Error while fetching object from URL", error: inspect(err)) + :error end end