refactor(activitypub): cleanup unused imports and variables
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
dd775b6ae2
commit
00250ff33a
|
@ -16,7 +16,6 @@ defmodule Mobilizon.Federation.ActivityPub.Relay do
|
||||||
alias Mobilizon.Federation.{NodeInfo, WebFinger}
|
alias Mobilizon.Federation.{NodeInfo, WebFinger}
|
||||||
alias Mobilizon.GraphQL.API.Follows
|
alias Mobilizon.GraphQL.API.Follows
|
||||||
alias Mobilizon.Service.Workers.Background
|
alias Mobilizon.Service.Workers.Background
|
||||||
import Mobilizon.Federation.ActivityPub.Utils, only: [create_full_domain_string: 1]
|
|
||||||
|
|
||||||
require Logger
|
require Logger
|
||||||
|
|
||||||
|
@ -185,7 +184,7 @@ defmodule Mobilizon.Federation.ActivityPub.Relay do
|
||||||
defp fetch_actor("http://" <> address), do: fetch_actor(address)
|
defp fetch_actor("http://" <> address), do: fetch_actor(address)
|
||||||
|
|
||||||
defp fetch_actor(address) do
|
defp fetch_actor(address) do
|
||||||
%URI{host: host} = uri = URI.parse("http://" <> address)
|
%URI{host: host} = URI.parse("http://" <> address)
|
||||||
|
|
||||||
cond do
|
cond do
|
||||||
String.contains?(address, "@") ->
|
String.contains?(address, "@") ->
|
||||||
|
|
Loading…
Reference in a new issue