Mastodon API: Fix PUT /api/web/settings

This commit is contained in:
eal 2018-12-16 13:15:34 +02:00
commit 4c783e35c0
3 changed files with 23 additions and 4 deletions

View file

@ -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