Transmogrifier event create Handle any type of error

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-04-28 18:19:09 +02:00
parent b13d4d253e
commit 614ead1777
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -111,8 +111,7 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier do
{:ok, activity, event}
else
{:existing_event, %Event{} = event} -> {:ok, nil, event}
{:error, _, _} -> :error
{:error, _} -> :error
_ -> :error
end
end