forked from AkkomaGang/akkoma
use atom key for fields
This commit is contained in:
parent
05c935c396
commit
d0f07e55d2
1 changed files with 6 additions and 1 deletions
|
@ -242,7 +242,12 @@ def set_keys(info, keys) do
|
|||
end
|
||||
|
||||
def remote_user_creation(info, params) do
|
||||
params = Map.put(params, "fields", Enum.map(params["fields"], &truncate_field/1))
|
||||
params =
|
||||
if Map.has_key?(params, :fields) do
|
||||
Map.put(params, :fields, Enum.map(params[:fields], &truncate_field/1))
|
||||
else
|
||||
params
|
||||
end
|
||||
|
||||
info
|
||||
|> cast(params, [
|
||||
|
|
Loading…
Reference in a new issue