Mastodon API: Fix PUT /api/web/settings
This commit is contained in:
parent
2592b3c81a
commit
4c783e35c0
3 changed files with 23 additions and 4 deletions
|
|
@ -149,9 +149,12 @@ defmodule Pleroma.User.Info do
|
|||
])
|
||||
end
|
||||
|
||||
def mastodon_settings_update(info, params) do
|
||||
def mastodon_settings_update(info, settings) do
|
||||
params = %{settings: settings}
|
||||
|
||||
info
|
||||
|> cast(params, [:settings])
|
||||
|> validate_required([:settings])
|
||||
end
|
||||
|
||||
def set_source_data(info, source_data) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue