Allow to get Mastodon instance relays

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-05-06 16:58:33 +02:00
parent aff1959030
commit 3982977121
2 changed files with 9 additions and 1 deletions

View File

@@ -469,7 +469,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Admin do
})
when is_admin(role) do
has_relay = Actors.has_relay?(domain)
remote_relay = Actors.get_actor_by_name("relay@#{domain}")
remote_relay = Actors.get_relay(domain)
local_relay = Relay.get_actor()
result = %{