Add default_scope to /api/v1/update_credentials

This commit is contained in:
rinpatch 2019-04-27 23:55:54 +03:00
commit ce3789e39a
3 changed files with 14 additions and 0 deletions

View file

@ -103,6 +103,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
{:ok, ControllerHelper.truthy_param?(value)}
end)
end)
|> add_if_present(params, "default_scope", :default_scope)
|> add_if_present(params, "header", :banner, fn value ->
with %Plug.Upload{} <- value,
{:ok, object} <- ActivityPub.upload(value, type: :banner) do