Browse Source

Merge branch 'closed-social-v3' of github.com:closed-social/mastodon into closed-social-v3

pull/4/head
欧醚 4 years ago
parent
commit
c608897a29
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/user.rb

+ 1
- 1
app/models/user.rb View File

@ -80,7 +80,7 @@ class User < ApplicationRecord
accepts_nested_attributes_for :invite_request, reject_if: ->(attributes) { attributes['text'].blank? }
validates :locale, inclusion: I18n.available_locales.map(&:to_s), if: :locale?
validates_with BlacklistedEmailValidator, on: :create
validates_with BlacklistedEmailValidator, if: :email_changed?
validates_with EmailMxValidator, if: :validate_email_dns?
validates :agreement, acceptance: { allow_nil: false, accept: [true, 'true', '1'] }, on: :create

Loading…
Cancel
Save