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()
|
@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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue