Allow update_credentials to update User.language
authorTusooa Zhu <tusooa@kazv.moe>
Wed, 2 Mar 2022 05:58:02 +0000 (00:58 -0500)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 29 Jun 2022 19:45:35 +0000 (20:45 +0100)
lib/pleroma/web/mastodon_api/controllers/account_controller.ex

index a307807a93148c1f8199ad314de9d8e3230a3c67..5303bdfd9f438dd1311a476ad3a56b54d4774354 100644 (file)
@@ -217,6 +217,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
       |> Maps.put_if_present(:is_locked, params[:locked])
       # Note: param name is indeed :discoverable (not an error)
       |> Maps.put_if_present(:is_discoverable, params[:discoverable])
+      |> Maps.put_if_present(:language, params[:language])
 
     # What happens here:
     #