activitypub: fix error condition match
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 30 Sep 2018 05:25:28 +0000 (05:25 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 30 Sep 2018 05:26:13 +0000 (05:26 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

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