mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-11 03:39:13 +00:00
Object.Fetcher: Handle error on Containment.contain_origin/2
This commit is contained in:
parent
f00562ed6b
commit
40d0a198e2
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,7 @@ defmodule Pleroma.Object.Fetcher do
|
||||||
"type" => "Create",
|
"type" => "Create",
|
||||||
"to" => data["to"],
|
"to" => data["to"],
|
||||||
"cc" => data["cc"],
|
"cc" => data["cc"],
|
||||||
|
# TODO: Should we seriously keep this attributedTo thing?
|
||||||
"actor" => data["actor"] || data["attributedTo"],
|
"actor" => data["actor"] || data["attributedTo"],
|
||||||
"object" => data
|
"object" => data
|
||||||
},
|
},
|
||||||
|
@ -56,6 +57,9 @@ defmodule Pleroma.Object.Fetcher do
|
||||||
object = %Object{} ->
|
object = %Object{} ->
|
||||||
{:ok, object}
|
{:ok, object}
|
||||||
|
|
||||||
|
:error ->
|
||||||
|
{:error, "Object containment failed."}
|
||||||
|
|
||||||
_e ->
|
_e ->
|
||||||
Logger.info("Couldn't get object via AP, trying out OStatus fetching...")
|
Logger.info("Couldn't get object via AP, trying out OStatus fetching...")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue