diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-01-06 15:22:35 -0600 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-01-06 15:22:35 -0600 |
commit | 1438fd958325c3d469315c478f06def9e4dd0de3 (patch) | |
tree | 738e7e9ce8e0e0af89d9dff411191643cbf45aab /lib/pleroma/web/twitter_api/twitter_api.ex | |
parent | 2aeb229de3f59e1704c633c31415e7e834f6ba67 (diff) | |
parent | 5e128a6be30563adc3b8a938aa68d18ac04cdfa0 (diff) | |
download | pleroma-1438fd958325c3d469315c478f06def9e4dd0de3.tar.gz |
Merge remote-tracking branch 'upstream/develop' into block-behavior
Diffstat (limited to 'lib/pleroma/web/twitter_api/twitter_api.ex')
-rw-r--r-- | lib/pleroma/web/twitter_api/twitter_api.ex | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 5d7948507..8e20b0d55 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -45,7 +45,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do case User.register(changeset) do {:ok, user} -> - maybe_notify_admins(user) {:ok, user} {:error, changeset} -> @@ -58,18 +57,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do end end - defp maybe_notify_admins(%User{} = account) do - if Pleroma.Config.get([:instance, :account_approval_required]) do - User.all_superusers() - |> Enum.filter(fn user -> not is_nil(user.email) end) - |> Enum.each(fn superuser -> - superuser - |> Pleroma.Emails.AdminEmail.new_unapproved_registration(account) - |> Pleroma.Emails.Mailer.deliver_async() - end) - end - end - def password_reset(nickname_or_email) do with true <- is_binary(nickname_or_email), %User{local: true, email: email, deactivated: false} = user when is_binary(email) <- |