Don't sign fetch when fetching actor for a given signature
Otherwise it's doing a loop Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -103,8 +103,9 @@ defmodule Mobilizon.Federation.HTTPSignatures.Signature do
|
||||
actor_id = key_id_to_actor_url(kid)
|
||||
Logger.debug("Refetching public key for #{actor_id}")
|
||||
|
||||
with {:ok, _actor} <- ActivityPubActor.make_actor_from_url(actor_id) do
|
||||
get_public_key_for_url(actor_id)
|
||||
with {:ok, %Actor{} = actor} <-
|
||||
ActivityPubActor.make_actor_from_url(actor_url, ignore_sign_object_fetches: true) do
|
||||
get_actor_public_key(actor)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user