Skip to content

Commit

Permalink
Fix server status URL being a required server setting (mastodon#23499)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and Jean Bertrand committed Feb 22, 2023
1 parent 6adfe52 commit c7ceb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/form/admin_settings.rb
Expand Up @@ -69,7 +69,7 @@ class Form::AdminSettings
validates :show_domain_blocks_rationale, inclusion: { in: %w(disabled users all) }, if: -> { defined?(@show_domain_blocks_rationale) }
validates :media_cache_retention_period, :content_cache_retention_period, :backups_retention_period, numericality: { only_integer: true }, allow_blank: true, if: -> { defined?(@media_cache_retention_period) || defined?(@content_cache_retention_period) || defined?(@backups_retention_period) }
validates :site_short_description, length: { maximum: 200 }, if: -> { defined?(@site_short_description) }
validates :status_page_url, url: true
validates :status_page_url, url: true, allow_blank: true
validate :validate_site_uploads

KEYS.each do |key|
Expand Down

0 comments on commit c7ceb92

Please sign in to comment.