From 4db1bc2c0ebbeca592b7bbe300782420ee08c304 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 30 Sep 2018 05:25:28 +0000 Subject: [PATCH] activitypub: fix error condition match --- lib/pleroma/web/activity_pub/activity_pub.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def fetch_object_from_id(id) do {:ok, activity} <- Transmogrifier.handle_incoming(params) do {:ok, Object.normalize(activity.data["object"])} else - {:reject, nil} -> + {:error, {:reject, nil}} -> {:reject, nil} object = %Object{} ->