This commit is contained in:
Isa S. 2024-11-25 17:05:04 +00:00 committed by GitHub
commit 85194e760c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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'