Commit 834ac581 authored by Hakaba Hitoyo's avatar Hakaba Hitoyo

bugfix

parent e50e38c5
Pipeline #20407 failed with stages
in 3 minutes and 28 seconds
...@@ -152,8 +152,7 @@ def update_credentials(%{assigns: %{user: original_user}} = conn, params) do ...@@ -152,8 +152,7 @@ def update_credentials(%{assigns: %{user: original_user}} = conn, params) do
:hide_favorites, :hide_favorites,
:show_role, :show_role,
:skip_thread_containment, :skip_thread_containment,
:discoverable, :discoverable
:actor_type
] ]
|> Enum.reduce(%{}, fn key, acc -> |> Enum.reduce(%{}, fn key, acc ->
add_if_present(acc, params, to_string(key), key, &{:ok, truthy_param?(&1)}) add_if_present(acc, params, to_string(key), key, &{:ok, truthy_param?(&1)})
...@@ -188,6 +187,7 @@ def update_credentials(%{assigns: %{user: original_user}} = conn, params) do ...@@ -188,6 +187,7 @@ def update_credentials(%{assigns: %{user: original_user}} = conn, params) do
{:ok, Map.merge(user.pleroma_settings_store, value)} {:ok, Map.merge(user.pleroma_settings_store, value)}
end) end)
|> add_if_present(params, "default_scope", :default_scope) |> add_if_present(params, "default_scope", :default_scope)
|> add_if_present(params, "actor_type", :actor_type)
emojis_text = (user_params["display_name"] || "") <> (user_params["note"] || "") emojis_text = (user_params["display_name"] || "") <> (user_params["note"] || "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment