Accept reason in POST /api/v1/accounts and store in DB
This commit is contained in:
parent
bcfd38c8f3
commit
5ddf0415c4
4 changed files with 83 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
|||
|> Map.put(:nickname, params[:username])
|
||||
|> Map.put(:name, Map.get(params, :fullname, params[:username]))
|
||||
|> Map.put(:password_confirmation, params[:password])
|
||||
|> Map.put(:registration_reason, params[:reason])
|
||||
|
||||
if Pleroma.Config.get([:instance, :registrations_open]) do
|
||||
create_user(params, opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue