2017-01-10 00:00:55 +11:00
|
|
|
object false
|
|
|
|
|
2017-02-07 09:16:20 +11:00
|
|
|
node(:meta) do
|
2017-01-10 00:00:55 +11:00
|
|
|
{
|
2017-04-15 10:32:42 +10:00
|
|
|
streaming_api_base_url: @streaming_api_base_url,
|
2017-01-10 00:00:55 +11:00
|
|
|
access_token: @token,
|
|
|
|
locale: I18n.locale,
|
2017-04-17 04:32:00 +10:00
|
|
|
domain: Rails.configuration.x.local_domain,
|
2017-01-10 00:00:55 +11:00
|
|
|
me: current_account.id,
|
2017-04-17 04:32:00 +10:00
|
|
|
admin: @admin.try(:id),
|
2017-04-12 00:10:16 +10:00
|
|
|
boost_modal: current_account.user.setting_boost_modal,
|
2017-01-10 00:00:55 +11:00
|
|
|
}
|
2017-02-07 09:16:20 +11:00
|
|
|
end
|
2017-01-10 00:00:55 +11:00
|
|
|
|
2017-02-07 09:16:20 +11:00
|
|
|
node(:compose) do
|
2017-01-10 00:00:55 +11:00
|
|
|
{
|
|
|
|
me: current_account.id,
|
2017-02-07 09:16:20 +11:00
|
|
|
default_privacy: current_account.user.setting_default_privacy,
|
2017-01-10 00:00:55 +11:00
|
|
|
}
|
2017-02-07 09:16:20 +11:00
|
|
|
end
|
2017-01-10 00:00:55 +11:00
|
|
|
|
2017-02-07 09:16:20 +11:00
|
|
|
node(:accounts) do
|
2017-04-17 04:32:00 +10:00
|
|
|
store = {}
|
|
|
|
store[current_account.id] = partial('api/v1/accounts/show', object: current_account)
|
|
|
|
store[@admin.id] = partial('api/v1/accounts/show', object: @admin) unless @admin.nil?
|
|
|
|
store
|
2017-02-07 09:16:20 +11:00
|
|
|
end
|
2017-01-10 00:00:55 +11:00
|
|
|
|
|
|
|
node(:settings) { @web_settings }
|