Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
@ -54,7 +54,7 @@ class AccountSuggestions::SettingSource < AccountSuggestions::Source
|
||||
|
||||
next if username.blank?
|
||||
|
||||
[username, domain]
|
||||
[username.downcase, domain&.downcase]
|
||||
end.compact
|
||||
end
|
||||
|
||||
@ -63,6 +63,6 @@ class AccountSuggestions::SettingSource < AccountSuggestions::Source
|
||||
end
|
||||
|
||||
def to_ordered_list_key(account)
|
||||
[account.username, account.domain]
|
||||
[account.username.downcase, account.domain&.downcase]
|
||||
end
|
||||
end
|
||||
|
@ -86,7 +86,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|
|
||||
|
Reference in New Issue
Block a user