Fix content retention policy settings not accepting a blank value (#19248)

lolsob-rspec
Eugen Rochko 2022-09-29 01:15:09 +02:00 committed by GitHub
parent 8dcb50e11b
commit 195560b03a
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Form::AdminSettings
validates :bootstrap_timeline_accounts, existing_username: { multiple: true }
validates :show_domain_blocks, inclusion: { in: %w(disabled users all) }
validates :show_domain_blocks_rationale, inclusion: { in: %w(disabled users all) }
validates :media_cache_retention_period, :content_cache_retention_period, :backups_retention_period, numericality: { only_integer: true }
validates :media_cache_retention_period, :content_cache_retention_period, :backups_retention_period, numericality: { only_integer: true }, allow_blank: true
def initialize(_attributes = {})
super