Merge remote-tracking branch 'remotes/origin/develop' into chore/elixir-1.11
[akkoma] / lib / pleroma / web / mastodon_api / controllers / account_controller.ex
index 97858a93c5d6126782e4724177527b99efa460d7..3cfdab91461784be778748522c52d781ede96ce7 100644 (file)
@@ -185,7 +185,6 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
         :show_role,
         :skip_thread_containment,
         :allow_following_move,
-        :discoverable,
         :accepts_chat_messages
       ]
       |> Enum.reduce(%{}, fn key, acc ->
@@ -210,6 +209,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
       end)
       |> Maps.put_if_present(:actor_type, params[:actor_type])
       |> Maps.put_if_present(:is_locked, params[:locked])
+      |> Maps.put_if_present(:is_discoverable, params[:discoverable])
 
     # What happens here:
     #