activitypub: don't fall back to OStatus fetching when MRF rejects an object
authorWilliam Pitcock <nenolod@dereferenced.org>
Fri, 28 Sep 2018 00:44:15 +0000 (00:44 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Fri, 28 Sep 2018 00:45:10 +0000 (00:45 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index 46dabd5dea1563ccb40185ad8cb12d9084e33125..e03e7c4714943ca2a6c9855a972bf359d9087bf5 100644 (file)
@@ -756,6 +756,9 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
            {:ok, activity} <- Transmogrifier.handle_incoming(params) do
         {:ok, Object.normalize(activity.data["object"])}
       else
+        {:reject, nil} ->
+          {:reject, nil}
+
         object = %Object{} ->
           {:ok, object}