Always return {atom, _} from try_send_confirmation
[akkoma] / lib / pleroma / user.ex
index 6e2269aff220030a3ef81de3fde2ab58911a4d87..78eb29ddd8839dc73bee3dac5905cb63ebf59030 100644 (file)
@@ -279,8 +279,10 @@ defmodule Pleroma.User do
     if user.info.confirmation_pending &&
          Pleroma.Config.get([:instance, :account_activation_required]) do
       user
-      |> Pleroma.UserEmail.account_confirmation_email()
-      |> Pleroma.Mailer.deliver_async()
+      |> Pleroma.Emails.UserEmail.account_confirmation_email()
+      |> Pleroma.Emails.Mailer.deliver_async()
+
+      {:ok, :enqueued}
     else
       {:ok, :noop}
     end