refactor(activitypub): cleanup unused imports and variables

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-12-19 09:53:05 +01:00
parent dd775b6ae2
commit 00250ff33a
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -16,7 +16,6 @@ defmodule Mobilizon.Federation.ActivityPub.Relay do
alias Mobilizon.Federation.{NodeInfo, WebFinger}
alias Mobilizon.GraphQL.API.Follows
alias Mobilizon.Service.Workers.Background
import Mobilizon.Federation.ActivityPub.Utils, only: [create_full_domain_string: 1]
require Logger
@ -185,7 +184,7 @@ defmodule Mobilizon.Federation.ActivityPub.Relay do
defp fetch_actor("http://" <> address), do: fetch_actor(address)
defp fetch_actor(address) do
%URI{host: host} = uri = URI.parse("http://" <> address)
%URI{host: host} = URI.parse("http://" <> address)
cond do
String.contains?(address, "@") ->