Commit 40d0a198 authored by Haelwenn's avatar Haelwenn

Object.Fetcher: Handle error on Containment.contain_origin/2

parent f00562ed
......@@ -38,6 +38,7 @@ defmodule Pleroma.Object.Fetcher do
"type" => "Create",
"to" => data["to"],
"cc" => data["cc"],
# TODO: Should we seriously keep this attributedTo thing?
"actor" => data["actor"] || data["attributedTo"],
"object" => data
},
......@@ -56,6 +57,9 @@ defmodule Pleroma.Object.Fetcher do
object = %Object{} ->
{:ok, object}
:error ->
{:error, "Object containment failed."}
_e ->
Logger.info("Couldn't get object via AP, trying out OStatus fetching...")
......
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