AccountController: Make setting accepts_chat_messages possible.
This commit is contained in:
parent
4a7b89e372
commit
e3b5559780
4 changed files with 18 additions and 4 deletions
|
|
@ -160,7 +160,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
|
|||
:show_role,
|
||||
:skip_thread_containment,
|
||||
:allow_following_move,
|
||||
:discoverable
|
||||
:discoverable,
|
||||
:accepts_chat_messages
|
||||
]
|
||||
|> Enum.reduce(%{}, fn key, acc ->
|
||||
Maps.put_if_present(acc, key, params[key], &{:ok, truthy_param?(&1)})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue