Merge remote-tracking branch 'lambadalambda/feature/configurable-status-size' into glitchsoc/feature/configurable-status-size

This commit is contained in:
David Yip
2017-11-17 14:28:16 -06:00
5 changed files with 20 additions and 5 deletions

View File

@@ -2,10 +2,15 @@
class InitialStateSerializer < ActiveModel::Serializer
attributes :meta, :compose, :accounts,
:media_attachments, :settings, :push_subscription
:media_attachments, :settings, :push_subscription,
:max_toot_chars
has_many :custom_emojis, serializer: REST::CustomEmojiSerializer
def max_toot_chars
StatusLengthValidator::MAX_CHARS
end
def custom_emojis
CustomEmoji.local.where(disabled: false)
end