Rename MAX_CHARS to MAX_TOOT_CHARS to be more specific.

This commit is contained in:
Lain Iwakura
2017-11-14 17:56:38 +01:00
parent dae8916544
commit ca5440b93d
5 changed files with 7 additions and 7 deletions

View File

@ -3,11 +3,11 @@
class InitialStateSerializer < ActiveModel::Serializer
attributes :meta, :compose, :accounts,
:media_attachments, :settings, :push_subscription,
:max_chars
:max_toot_chars
has_many :custom_emojis, serializer: REST::CustomEmojiSerializer
def max_chars
def max_toot_chars
StatusLengthValidator::MAX_CHARS
end