Update Instance Actor when updating instance settings

Also fix an issue when publishing activities to followers/group members

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-07-07 15:51:42 +02:00
parent 744c040d0d
commit e0fad9ddd1
8 changed files with 263 additions and 41 deletions

View File

@@ -99,6 +99,10 @@ defmodule Mobilizon.Admin do
|> Repo.transaction()
end
def clear_settings(group) do
Setting |> where([s], s.group == ^group) |> Repo.delete_all()
end
defp do_save_setting(transaction, _group, args) when args == %{}, do: transaction
defp do_save_setting(transaction, group, args) do