pull/33015/merge
Isa S. 2025-01-08 17:07:05 +00:00 committed by GitHub
commit 35dc27f922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -356,6 +356,16 @@ namespace :mastodon do
prompt.say "\n"
ip_retention_period_days = prompt.ask('How long should we store IP addresses in the database, for moderation purposes? (in days)') do |q|
q.required true
q.default 365
q.convert :int
end
env['IP_RETENTION_PERIOD'] = ip_retention_period_days.days.to_i
prompt.say "\n"
loop do
if prompt.yes?('Do you want to send e-mails from localhost?', default: false)
env['SMTP_SERVER'] = 'localhost'