From dfe299eff9fa0780739cbae80453400807777ab3 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 25 Oct 2023 14:09:03 +0300 Subject: [PATCH] Add user account deletion delay setting --- config/initializers/config.rb | 1 + config/settings.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config/initializers/config.rb b/config/initializers/config.rb index c1cc522a5..f36e6ac1a 100644 --- a/config/initializers/config.rb +++ b/config/initializers/config.rb @@ -79,6 +79,7 @@ Config.setup do |config| required(:max_number_of_relation_members).filled(:int?) required(:max_issues_count).filled(:int?) required(:api_timeout).filled(:int?) + required(:user_account_deletion_delay).maybe(:number?) required(:imagery_blacklist).maybe(:array?) required(:status).filled(:str?, :included_in? => ALLOWED_STATUS) required(:avatar_storage).filled(:str?) diff --git a/config/settings.yml b/config/settings.yml index 87c467c88..1c9c7e0a1 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -53,6 +53,8 @@ api_timeout: 300 web_timeout: 30 # Periods (in hours) which are allowed for user blocks user_block_periods: [0, 1, 3, 6, 12, 24, 48, 96, 168, 336, 731, 4383, 8766, 87660] +# Account deletion cooldown period (in hours) since last changeset close; null to disable, 0 to make sure there aren't any open changesets when the deletion happens +user_account_deletion_delay: null # Rate limit for message sending max_messages_per_hour: 60 # Rate limit for friending -- 2.39.5