1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-09-11 14:17:21 +01:00

Apply suggestion to lib/pleroma/object/fetcher.ex

This commit is contained in:
rinpatch 2019-07-20 18:53:00 +00:00
parent d4ee76ab63
commit c3ecaea64d

View file

@ -97,7 +97,8 @@ def fetch_and_contain_remote_object_from_id(id) when is_binary(id) do
end
end
def fetch_and_contain_remote_object_from_id(_id) do
def fetch_and_contain_remote_object_from_id(%{"id" => id), do: fetch_and_contain_remote_object_from_id(id)
def fetch_and_contain_remote_object_from_id(_id), do: {:error, "id must be a string"}
{:error, "id must be a string"}
end
end