fix pattern match on user registration

deliver_async will return a single atom
This commit is contained in:
Sadposter 2019-04-14 15:46:54 +01:00
parent 7304e0ce18
commit ec42b639a3

View 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