activitypub: don't fall back to OStatus fetching when MRF rejects an object

This commit is contained in:
William Pitcock 2018-09-28 00:44:15 +00:00
parent db989d1fa4
commit 707077edde
1 changed files with 3 additions and 0 deletions

View File

@ -756,6 +756,9 @@ def fetch_object_from_id(id) do
{:ok, activity} <- Transmogrifier.handle_incoming(params) do {:ok, activity} <- Transmogrifier.handle_incoming(params) do
{:ok, Object.normalize(activity.data["object"])} {:ok, Object.normalize(activity.data["object"])}
else else
{:reject, nil} ->
{:reject, nil}
object = %Object{} -> object = %Object{} ->
{:ok, object} {:ok, object}