mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 00:09:35 +00:00
use atom key for fields
This commit is contained in:
parent
05c935c396
commit
d0f07e55d2
|
@ -242,7 +242,12 @@ defmodule Pleroma.User.Info 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