From: rinpatch Date: Sat, 20 Jul 2019 18:53:00 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/object/fetcher.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c3ecaea64dd377b586e3b2a5316e90884ec78fe6;p=akkoma Apply suggestion to lib/pleroma/object/fetcher.ex --- diff --git a/lib/pleroma/object/fetcher.ex b/lib/pleroma/object/fetcher.ex index bc3e7e5bc..1e60d0082 100644 --- a/lib/pleroma/object/fetcher.ex +++ b/lib/pleroma/object/fetcher.ex @@ -97,7 +97,8 @@ defmodule Pleroma.Object.Fetcher 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