Fix mix format
This commit is contained in:
parent
848691541f
commit
bc31e2f0c2
@ -65,7 +65,8 @@ defmodule Mobilizon.Addresses.Address do
|
||||
|
||||
@spec set_url(Ecto.Changeset.t()) :: Ecto.Changeset.t()
|
||||
defp set_url(%Ecto.Changeset{changes: changes} = changeset) do
|
||||
url = Map.get(changes, :url, "#{Mobilizon.Web.Endpoint.url()}/address/#{Ecto.UUID.generate()}")
|
||||
url =
|
||||
Map.get(changes, :url, "#{Mobilizon.Web.Endpoint.url()}/address/#{Ecto.UUID.generate()}")
|
||||
|
||||
put_change(changeset, :url, url)
|
||||
end
|
||||
|
@ -33,7 +33,10 @@ defmodule Mobilizon.Federation.WebFingerTest do
|
||||
actor = insert(:actor)
|
||||
|
||||
{:ok, result} =
|
||||
WebFinger.webfinger("#{actor.preferred_username}@#{Mobilizon.Web.Endpoint.host()}", "JSON")
|
||||
WebFinger.webfinger(
|
||||
"#{actor.preferred_username}@#{Mobilizon.Web.Endpoint.host()}",
|
||||
"JSON"
|
||||
)
|
||||
|
||||
assert is_map(result)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user