Apply suggestion to lib/pleroma/web/activity_pub/pipeline.ex
authorlain <lain@soykaf.club>
Thu, 26 Mar 2020 14:45:28 +0000 (14:45 +0000)
committerlain <lain@soykaf.club>
Thu, 26 Mar 2020 14:45:28 +0000 (14:45 +0000)
lib/pleroma/web/activity_pub/pipeline.ex

index 25f29bf636341d742bded4664c5c6b58aa533bc0..0068d60be69bc5ab861773e70892bd31430ba01d 100644 (file)
@@ -22,6 +22,7 @@ defmodule Pleroma.Web.ActivityPub.Pipeline do
          {_, {:ok, _}} <- {:federation, maybe_federate(activity, meta)} do
       {:ok, activity, meta}
     else
+      {:mrf_object, {:reject, _}} -> {:ok, nil, meta}
       e -> {:error, e}
     end
   end