Merge branch 'bugfix/fix-mrf-reject-match' into 'develop'

activitypub: fix error condition match

See merge request pleroma/pleroma!365
This commit is contained in:
kaniini 2018-09-30 05:32:56 +00:00
commit 4f03bb2299
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ def fetch_object_from_id(id) do
{:ok, activity} <- Transmogrifier.handle_incoming(params) do {:ok, activity} <- Transmogrifier.handle_incoming(params) do
{:ok, Object.normalize(activity.data["object"])} {:ok, Object.normalize(activity.data["object"])}
else else
{:reject, nil} -> {:error, {:reject, nil}} ->
{:reject, nil} {:reject, nil}
object = %Object{} -> object = %Object{} ->