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:
parent
fde560208f
commit
2ec7457783
|
@ -360,6 +360,9 @@ defmodule Mobilizon.Actors do
|
||||||
Multi.run(multi, :reset_default_actor_id, fn _, _ ->
|
Multi.run(multi, :reset_default_actor_id, fn _, _ ->
|
||||||
reset_default_actor_id(actor)
|
reset_default_actor_id(actor)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
_ ->
|
||||||
|
multi
|
||||||
end
|
end
|
||||||
|
|
||||||
multi =
|
multi =
|
||||||
|
|
Loading…
Reference in a new issue