Special handling for unconfirmed users based on instance config no longer needed.
authorMark Felder <feld@feld.me>
Wed, 20 Jan 2021 17:14:15 +0000 (11:14 -0600)
committerMark Felder <feld@feld.me>
Wed, 20 Jan 2021 17:14:15 +0000 (11:14 -0600)
lib/pleroma/user.ex

index d81abbd2b7838131920d30e8a2955bdd7bf22507..2aeacf8160ade0629dde2e3feb69de80b6a43361 100644 (file)
@@ -289,15 +289,7 @@ defmodule Pleroma.User do
   def account_status(%User{deactivated: true}), do: :deactivated
   def account_status(%User{password_reset_pending: true}), do: :password_reset_pending
   def account_status(%User{local: true, is_approved: false}), do: :approval_pending
-
-  def account_status(%User{local: true, is_confirmed: false}) do
-    if Config.get([:instance, :account_activation_required]) do
-      :confirmation_pending
-    else
-      :active
-    end
-  end
-
+  def account_status(%User{local: true, is_confirmed: false}), do: :confirmation_pending
   def account_status(%User{}), do: :active
 
   @spec visible_for(User.t(), User.t() | nil) ::