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} {:ok, activity, event}
else else
{:existing_event, %Event{} = event} -> {:ok, nil, event} {:existing_event, %Event{} = event} -> {:ok, nil, event}
{:error, _, _} -> :error _ -> :error
{:error, _} -> :error
end end
end end