Fix mix format

This commit is contained in:
rustra 2020-01-26 21:53:04 +01:00
parent 8325f47346
commit c3358ca352
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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