summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2022-03-02 00:58:02 -0500
committerTusooa Zhu <tusooa@kazv.moe>2022-03-02 00:58:02 -0500
commit396f036b132271ebb0a6a88d28672792528b3b9c (patch)
treefce5c58e32c771258d65251b2075430629de98a9
parent0149ea453868b701d949a5cfee429dfd9d78bb65 (diff)
Allow update_credentials to update User.language
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/account_controller.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
index 8e6d49168..2c97cadc2 100644
--- a/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/account_controller.ex
@@ -221,6 +221,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
# Note: param name is indeed :discoverable (not an error)
|> Maps.put_if_present(:is_discoverable, params[:discoverable])
|> Maps.put_if_present(:birthday, params[:birthday])
+ |> Maps.put_if_present(:language, params[:language])
# What happens here:
#