Merge remote-tracking branch 'lambadalambda/feature/configurable-status-size' into glitchsoc/feature/configurable-status-size
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user