From ce6a25048c1844716ee25fe45ca3d84c63d44d39 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 24 Apr 2022 17:52:46 +0200 Subject: [PATCH] Add missing "relay@" part of federated address to follow Signed-off-by: Thomas Citharel --- lib/federation/activity_pub/relay.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/federation/activity_pub/relay.ex b/lib/federation/activity_pub/relay.ex index 00c011b1..21d3909e 100644 --- a/lib/federation/activity_pub/relay.ex +++ b/lib/federation/activity_pub/relay.ex @@ -179,7 +179,10 @@ defmodule Mobilizon.Federation.ActivityPub.Relay do check_actor(address) !is_nil(host) -> - uri |> create_full_domain_string() |> check_actor() + uri + |> create_full_domain_string() + |> then(&Kernel.<>("relay@", &1)) + |> check_actor() true -> {:error, :bad_url}