activitypub: fix error condition match

This commit is contained in:
William Pitcock 2018-09-30 05:25:28 +00:00
parent dbc9feecbf
commit 4db1bc2c0e

View 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{} ->