diff options
author | rinpatch <rinpatch@sdf.org> | 2019-07-20 18:53:00 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-07-20 18:53:00 +0000 |
commit | c3ecaea64dd377b586e3b2a5316e90884ec78fe6 (patch) | |
tree | ad761ae14218129435f49775d1cb80ee06997824 | |
parent | d4ee76ab6355db0bed59b5126fe04d3399561798 (diff) | |
download | pleroma-c3ecaea64dd377b586e3b2a5316e90884ec78fe6.tar.gz |
Apply suggestion to lib/pleroma/object/fetcher.ex
-rw-r--r-- | lib/pleroma/object/fetcher.ex | 3 |
1 files changed, 2 insertions, 1 deletions
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 |