Handle actor being something else than Group or Person when deleting it

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-26 17:22:34 +02:00
parent fde560208f
commit 2ec7457783
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -360,6 +360,9 @@ defmodule Mobilizon.Actors do
Multi.run(multi, :reset_default_actor_id, fn _, _ ->
reset_default_actor_id(actor)
end)
_ ->
multi
end
multi =