projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#1149] Added more oban workers. Refactoring.
[akkoma]
/
lib
/
pleroma
/
object
/
fetcher.ex
diff --git
a/lib/pleroma/object/fetcher.ex
b/lib/pleroma/object/fetcher.ex
index 305ce835702b9a279318033c641572971cb31e85..8d79ddb1fd5af72d79d33fdf2175ef9eb5dc84dc 100644
(file)
--- a/
lib/pleroma/object/fetcher.ex
+++ b/
lib/pleroma/object/fetcher.ex
@@
-114,7
+114,7
@@
defmodule Pleroma.Object.Fetcher do
end
end
end
end
- def fetch_and_contain_remote_object_from_id(id) do
+ def fetch_and_contain_remote_object_from_id(id)
when is_binary(id)
do
Logger.info("Fetching object #{id} via AP")
date =
Logger.info("Fetching object #{id} via AP")
date =
@@
-141,4
+141,9
@@
defmodule Pleroma.Object.Fetcher do
{:error, e}
end
end
{:error, e}
end
end
+
+ 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"}
end
end