From: William Pitcock Date: Sun, 30 Sep 2018 05:25:28 +0000 (+0000) Subject: activitypub: fix error condition match X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4db1bc2c0ebbeca592b7bbe300782420ee08c304;p=akkoma activitypub: fix error condition match --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index e03e7c471..fc191addf 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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{} ->