Browse Source

place max_toot_chars in meta object

main
James Fenn 8 months ago
parent
commit
f49e7fdd97
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/serializers/initial_state_serializer.rb

+ 2
- 1
app/serializers/initial_state_serializer.rb View File

@@ -22,7 +22,8 @@ class InitialStateSerializer < ActiveModel::Serializer
invites_enabled: Setting.min_invite_role == 'user',
mascot: instance_presenter.mascot&.file&.url,
profile_directory: Setting.profile_directory,
trends: Setting.trends,
trends: Setting.trends,
max_toot_chars: StatusLengthValidator::MAX_CHARS,
}

if object.current_account


Loading…
Cancel
Save