|
|
@ -75,7 +75,7 @@ class Account < ApplicationRecord |
|
|
|
validates_with UniqueUsernameValidator, 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 :note, length: { maximum: 160 }, if: -> { local? && will_save_change_to_note? } |
|
|
|
validates :note, note_length: { maximum: 160 }, if: -> { local? && will_save_change_to_note? } |
|
|
|
validates :fields, length: { maximum: 4 }, if: -> { local? && will_save_change_to_fields? } |
|
|
|
|
|
|
|
scope :remote, -> { where.not(domain: nil) } |
|
|
|