Fix tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0cb39de01e
commit
afb9b797ba
|
@ -38,7 +38,7 @@ defmodule Mobilizon.Service.WebFinger do
|
|||
{:ok, represent_actor(actor, "JSON")}
|
||||
else
|
||||
_e ->
|
||||
with %Actor{} = actor when not is_nil(actor) <- Actors.get_actor_by_url(resource) do
|
||||
with {:ok, %Actor{} = actor} when not is_nil(actor) <- Actors.get_actor_by_url(resource) do
|
||||
{:ok, represent_actor(actor, "JSON")}
|
||||
else
|
||||
_e ->
|
||||
|
|
Loading…
Reference in a new issue