fix for endpoints after env update

This commit is contained in:
Alexander 2019-12-10 12:00:40 +03:00 committed by Alexander Strizhakov
commit a71393dd29
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
2 changed files with 6 additions and 2 deletions

View file

@ -37,7 +37,9 @@ defmodule Pleroma.Config.TransferTask do
group = Config.from_string(setting.group)
value = Config.from_binary(setting.value)
:ok = Application.put_env(group, key, value)
if group != :phoenix and key != :serve_endpoints do
:ok = Application.put_env(group, key, value)
end
group
rescue