1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 19:14:03 +00:00

Merge branch 'fix/fetcher-transmogrifier-error' into 'develop'

object/fetcher: Pass full Transmogrifier error

See merge request pleroma/pleroma!2696
This commit is contained in:
lain 2020-06-27 09:41:35 +00:00
commit dc31fbfe6c

View file

@ -83,8 +83,8 @@ def fetch_object_from_id(id, options \\ []) do
{:transmogrifier, {:error, {:reject, nil}}} ->
{:reject, nil}
{:transmogrifier, _} ->
{:error, "Transmogrifier failure."}
{:transmogrifier, _} = e ->
{:error, e}
{:object, data, nil} ->
reinject_object(%Object{}, data)