projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'update-mastofe/glitch-soc-2019-06-26' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
admin_api
/
admin_api_controller.ex
diff --git
a/lib/pleroma/web/admin_api/admin_api_controller.ex
b/lib/pleroma/web/admin_api/admin_api_controller.ex
index 03dfdca8299f8b253b4b446a0817c882a78cf4ae..953a22ea09468f023eca96ba858622770f35194b 100644
(file)
--- a/
lib/pleroma/web/admin_api/admin_api_controller.ex
+++ b/
lib/pleroma/web/admin_api/admin_api_controller.ex
@@
-377,12
+377,12
@@
defmodule Pleroma.Web.AdminAPI.AdminAPIController do
if Pleroma.Config.get([:instance, :dynamic_configuration]) do
updated =
Enum.map(configs, fn
if Pleroma.Config.get([:instance, :dynamic_configuration]) do
updated =
Enum.map(configs, fn
- %{"key" => key, "value" => value} ->
- {:ok, config} = Config.update_or_create(%{key: key, value: value})
+ %{"
group" => group, "
key" => key, "value" => value} ->
+ {:ok, config} = Config.update_or_create(%{
group: group,
key: key, value: value})
config
config
- %{"key" => key, "delete" => "true"} ->
- {:ok, _} = Config.delete(
key
)
+ %{"
group" => group, "
key" => key, "delete" => "true"} ->
+ {:ok, _} = Config.delete(
%{group: group, key: key}
)
nil
end)
|> Enum.reject(&is_nil(&1))
nil
end)
|> Enum.reject(&is_nil(&1))