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

Closes #1409

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2024-02-08 17:56:50 +01:00
parent 5429afba21
commit e3b36434cb
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

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