fix pattern match on user registration
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>
Sun, 14 Apr 2019 14:46:54 +0000 (15:46 +0100)
committerSadposter <hannah+pleroma@coffee-and-dreams.uk>
Sun, 14 Apr 2019 14:46:54 +0000 (15:46 +0100)
deliver_async will return a single atom

lib/pleroma/user.ex

index 4a41a15c77eba6893602518a1f94bbd9fea8cf7b..3ab7bd7423258a80df708b6f63fc4a34522f34c7 100644 (file)
@@ -270,7 +270,7 @@ defmodule Pleroma.User do
     with {:ok, user} <- Repo.insert(changeset),
          {:ok, user} <- autofollow_users(user),
          {:ok, _} <- Pleroma.User.WelcomeMessage.post_welcome_message_to_user(user),
-         {:ok, _} <- try_send_confirmation_email(user) do
+         :ok <- try_send_confirmation_email(user) do
       {:ok, user}
     end
   end