From: Haelwenn (lanodan) Monnier Date: Fri, 2 Nov 2018 07:30:52 +0000 (+0100) Subject: Pleroma.Web.AdminAPI.AdminAPIController: user_create statement format X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a87ed2fad6cdf91d19601471d593d21ce618f0c2;p=akkoma Pleroma.Web.AdminAPI.AdminAPIController: user_create statement format --- diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex index 17f5f320d..cb9839324 100644 --- a/lib/pleroma/web/admin_api/admin_api_controller.ex +++ b/lib/pleroma/web/admin_api/admin_api_controller.ex @@ -20,10 +20,9 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do |> json(nickname) end - def user_create( - conn, - %{user: %{"nickname" => nickname, "email" => email, "password" => password} = user} - ) do + def user_create(conn, %{ + user: %{"nickname" => nickname, "email" => email, "password" => password} = user + }) do new_user = %User{ nickname: nickname, name: user.name || nickname,