Merge remote-tracking branch 'pleroma/develop' into cycles-html
[akkoma] / lib / pleroma / web / pleroma_api / controllers / account_controller.ex
index bca8e679c5dfdf494f27be11cccac7bb918c498c..165afd3b42391029c212bfceb95bf360e19f0993 100644 (file)
@@ -56,7 +56,7 @@ defmodule Pleroma.Web.PleromaAPI.AccountController do
     nickname_or_email = params[:email] || params[:nickname]
 
     with %User{} = user <- User.get_by_nickname_or_email(nickname_or_email),
-         {:ok, _} <- User.try_send_confirmation_email(user) do
+         {:ok, _} <- User.maybe_send_confirmation_email(user) do
       json_response(conn, :no_content, "")
     end
   end