forked from AkkomaGang/akkoma
fix for new instances
This commit is contained in:
parent
135c196769
commit
7a4228be5a
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ def start_link do
|
|||
end
|
||||
|
||||
def load_and_update_env do
|
||||
if Pleroma.Config.get([:instance, :dynamic_configuration]) do
|
||||
if Pleroma.Config.get([:instance, :dynamic_configuration]) and
|
||||
Ecto.Adapters.SQL.table_exists?(Pleroma.Repo, "config") do
|
||||
Pleroma.Repo.all(Config)
|
||||
|> Enum.each(&update_env(&1))
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue