Special handling for unconfirmed users based on instance config no longer needed.
This commit is contained in:
parent
5d344e5c79
commit
dfc4cb6ebd
@ -165,14 +165,6 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
|
|||||||
{:ok, delete: delete_user, user: user}
|
{:ok, delete: delete_user, user: user}
|
||||||
end
|
end
|
||||||
|
|
||||||
test "when activation is not required", %{delete: delete, user: user} do
|
|
||||||
clear_config([:instance, :account_activation_required], false)
|
|
||||||
{:ok, _, _} = SideEffects.handle(delete)
|
|
||||||
ObanHelpers.perform_all()
|
|
||||||
|
|
||||||
assert User.get_cached_by_id(user.id).deactivated
|
|
||||||
end
|
|
||||||
|
|
||||||
test "when activation is required", %{delete: delete, user: user} do
|
test "when activation is required", %{delete: delete, user: user} do
|
||||||
clear_config([:instance, :account_activation_required], true)
|
clear_config([:instance, :account_activation_required], true)
|
||||||
{:ok, _, _} = SideEffects.handle(delete)
|
{:ok, _, _} = SideEffects.handle(delete)
|
||||||
|
Loading…
Reference in New Issue
Block a user