From: Sadposter Date: Sun, 14 Apr 2019 14:46:54 +0000 (+0100) Subject: fix pattern match on user registration X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ec42b639a347903ea5c0e5f9b365f1d5ea9e624f;p=akkoma fix pattern match on user registration deliver_async will return a single atom --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 4a41a15c7..3ab7bd742 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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