From: lain Date: Sat, 9 Feb 2019 12:39:57 +0000 (+0100) Subject: Do autofollow first. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=563f04e81bdda320b5a872be63c106fdfa5f42a6;p=akkoma Do autofollow first. --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index cd7752554..361034887 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -250,8 +250,8 @@ defmodule Pleroma.User do @doc "Inserts provided changeset, performs post-registration actions (confirmation email sending etc.)" def register(%Ecto.Changeset{} = changeset) do with {:ok, user} <- Repo.insert(changeset), - {:ok, _} <- try_send_confirmation_email(user), - {:ok, user} <- autofollow_users(user) do + {:ok, user} <- autofollow_users(user), + {:ok, _} <- try_send_confirmation_email(user) do {:ok, user} end end