activitypub: fix error condition match
This commit is contained in:
parent
dbc9feecbf
commit
4db1bc2c0e
|
@ -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{} ->
|
||||||
|
|
Loading…
Reference in New Issue