Merge branch 'fix-following-instances' into 'main'

Add missing "relay@" part of federated address to follow

See merge request framasoft/mobilizon!1217
This commit is contained in:
Thomas Citharel 2022-04-24 16:32:36 +00:00
commit 4b8cfffede

View file

@ -179,7 +179,10 @@ defmodule Mobilizon.Federation.ActivityPub.Relay do
check_actor(address) check_actor(address)
!is_nil(host) -> !is_nil(host) ->
uri |> create_full_domain_string() |> check_actor() uri
|> create_full_domain_string()
|> then(&Kernel.<>("relay@", &1))
|> check_actor()
true -> true ->
{:error, :bad_url} {:error, :bad_url}