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.

29 lines
668 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. }
  12. end
  13. node(:compose) do
  14. {
  15. me: current_account.id,
  16. default_privacy: current_account.user.setting_default_privacy,
  17. }
  18. end
  19. node(:accounts) do
  20. store = {}
  21. store[current_account.id] = partial('api/v1/accounts/show', object: current_account)
  22. store[@admin.id] = partial('api/v1/accounts/show', object: @admin) unless @admin.nil?
  23. store
  24. end
  25. node(:settings) { @web_settings }