Merge branch 'fixes' into 'main'

fix(activitypub): handle issue with AP Fetcher not catching some changeset errors

Closes #1409

See merge request framasoft/mobilizon!1531
This commit is contained in:
Thomas Citharel 2024-02-09 08:12:32 +00:00
commit 06cdb1cb43

View file

@ -105,6 +105,9 @@ defmodule Mobilizon.Federation.ActivityPub.Fetcher do
{:error, %Ecto.Changeset{} = err} -> {:error, %Ecto.Changeset{} = err} ->
{:error, err} {:error, err}
{:error, {:error, %Ecto.Changeset{} = err}} ->
{:error, err}
:error -> :error ->
{:error, :transmogrifier_error} {:error, :transmogrifier_error}
end end