You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
929 B

  1. object false
  2. node(:meta) do
  3. {
  4. streaming_api_base_url: @streaming_api_base_url,
  5. access_token: @token,
  6. locale: I18n.locale,
  7. domain: site_hostname,
  8. me: current_account.id,
  9. admin: @admin.try(:id),
  10. boost_modal: current_account.user.setting_boost_modal,
  11. delete_modal: current_account.user.setting_delete_modal,
  12. auto_play_gif: current_account.user.setting_auto_play_gif,
  13. }
  14. end
  15. node(:compose) do
  16. {
  17. me: current_account.id,
  18. default_privacy: current_account.user.setting_default_privacy,
  19. }
  20. end
  21. node(:accounts) do
  22. store = {}
  23. store[current_account.id] = partial('api/v1/accounts/show', object: current_account)
  24. store[@admin.id] = partial('api/v1/accounts/show', object: @admin) unless @admin.nil?
  25. store
  26. end
  27. node(:media_attachments) do
  28. {
  29. accept_content_types: MediaAttachment::IMAGE_MIME_TYPES + MediaAttachment::VIDEO_MIME_TYPES
  30. }
  31. end
  32. node(:settings) { @web_settings }