Commit ec42b639 authored by Sadposter's avatar Sadposter
Browse files

fix pattern match on user registration

deliver_async will return a single atom
parent 7304e0ce
......@@ -270,7 +270,7 @@ def register(%Ecto.Changeset{} = changeset) 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment