Fix mix format

This commit is contained in:
rustra 2020-01-26 21:53:04 +01:00
parent 848691541f
commit bc31e2f0c2
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() @spec set_url(Ecto.Changeset.t()) :: Ecto.Changeset.t()
defp set_url(%Ecto.Changeset{changes: changes} = changeset) do 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) put_change(changeset, :url, url)
end end

View file

@ -33,7 +33,10 @@ defmodule Mobilizon.Federation.WebFingerTest do
actor = insert(:actor) actor = insert(:actor)
{:ok, result} = {: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) assert is_map(result)
end end