Commit 56862f4c authored by kaniini's avatar kaniini
Browse files

activitypub: clean up logging statements a little

parent 1d17082a
......@@ -818,8 +818,6 @@ def fetch_object_from_id(id) do
if object = Object.get_cached_by_ap_id(id) do
{:ok, object}
else"Fetching #{id} via AP")
with {:ok, data} <- fetch_and_contain_remote_object_from_id(id),
nil <- Object.normalize(data),
params <- %{
......@@ -851,7 +849,7 @@ def fetch_object_from_id(id) do
def fetch_and_contain_remote_object_from_id(id) do"Fetching #{id} via AP")"Fetching object #{id} via AP")
with true <- String.starts_with?(id, "http"),
{:ok, %{body: body, status: code}} when code in 200..299 <-
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment