@ -75,7 +75,7 @@ class Account < ApplicationRecord
validates_with UniqueUsernameValidator , if : - > { local? && will_save_change_to_username? }
validates_with UniqueUsernameValidator , if : - > { local? && will_save_change_to_username? }
validates_with UnreservedUsernameValidator , if : - > { local? && will_save_change_to_username? }
validates_with UnreservedUsernameValidator , if : - > { local? && will_save_change_to_username? }
validates :display_name , length : { maximum : 30 } , if : - > { local? && will_save_change_to_display_name? }
validates :display_name , length : { maximum : 30 } , if : - > { local? && will_save_change_to_display_name? }
validates :note , note_length : { maximum : 16 0 } , if : - > { local? && will_save_change_to_note? }
validates :note , note_length : { maximum : 50 0 } , if : - > { local? && will_save_change_to_note? }
validates :fields , length : { maximum : 4 } , if : - > { local? && will_save_change_to_fields? }
validates :fields , length : { maximum : 4 } , if : - > { local? && will_save_change_to_fields? }
scope :remote , - > { where . not ( domain : nil ) }
scope :remote , - > { where . not ( domain : nil ) }