aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/mastodon_api/controllers
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-10-14 10:44:18 -0500
committerMark Felder <feld@FreeBSD.org>2020-10-14 10:44:18 -0500
commitb001237b79d50eef1f0636951cddc7b6da20260d (patch)
tree0a5f2253762e31843c9d288d1b85a60a55244f12 /lib/pleroma/web/mastodon_api/controllers
parent3242cfef20ea05bae53761ffaf54347c4c6f7bda (diff)
downloadpleroma-b001237b79d50eef1f0636951cddc7b6da20260d.tar.gz
Finish undoing API breakage
Diffstat (limited to 'lib/pleroma/web/mastodon_api/controllers')
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/account_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
index 6453880dc..9d2f42da9 100644
--- a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
@@ -186,7 +186,6 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
:show_role,
:skip_thread_containment,
:allow_following_move,
- :is_discoverable,
:accepts_chat_messages
]
|> Enum.reduce(%{}, fn key, acc ->
@@ -210,6 +209,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
if bot, do: {:ok, "Service"}, else: {:ok, "Person"}
end)
|> Maps.put_if_present(:actor_type, params[:actor_type])
+ |> Maps.put_if_present(:is_discoverable, params[:discoverable])
# What happens here:
#