2017-01-09 15:00:55 +02:00
|
|
|
object false
|
|
|
|
|
2017-02-07 00:16:20 +02:00
|
|
|
node(:meta) do
|
2017-01-09 15:00:55 +02:00
|
|
|
{
|
2017-04-15 03:32:42 +03:00
|
|
|
streaming_api_base_url: @streaming_api_base_url,
|
2017-01-09 15:00:55 +02:00
|
|
|
access_token: @token,
|
|
|
|
locale: I18n.locale,
|
2017-04-18 01:16:32 +03:00
|
|
|
domain: site_hostname,
|
2017-01-09 15:00:55 +02:00
|
|
|
me: current_account.id,
|
2017-04-16 21:32:00 +03:00
|
|
|
admin: @admin.try(:id),
|
2017-04-11 17:10:16 +03:00
|
|
|
boost_modal: current_account.user.setting_boost_modal,
|
2017-05-29 18:56:13 +03:00
|
|
|
delete_modal: current_account.user.setting_delete_modal,
|
2017-04-17 13:14:03 +03:00
|
|
|
auto_play_gif: current_account.user.setting_auto_play_gif,
|
2017-01-09 15:00:55 +02:00
|
|
|
}
|
2017-02-07 00:16:20 +02:00
|
|
|
end
|
2017-01-09 15:00:55 +02:00
|
|
|
|
2017-02-07 00:16:20 +02:00
|
|
|
node(:compose) do
|
2017-01-09 15:00:55 +02:00
|
|
|
{
|
|
|
|
me: current_account.id,
|
2017-02-07 00:16:20 +02:00
|
|
|
default_privacy: current_account.user.setting_default_privacy,
|
2017-01-09 15:00:55 +02:00
|
|
|
}
|
2017-02-07 00:16:20 +02:00
|
|
|
end
|
2017-01-09 15:00:55 +02:00
|
|
|
|
2017-02-07 00:16:20 +02:00
|
|
|
node(:accounts) do
|
2017-04-16 21:32:00 +03: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 00:16:20 +02:00
|
|
|
end
|
2017-01-09 15:00:55 +02:00
|
|
|
|
2017-05-08 17:49:53 +03:00
|
|
|
node(:media_attachments) do
|
|
|
|
{
|
|
|
|
accept_content_types: MediaAttachment::IMAGE_MIME_TYPES + MediaAttachment::VIDEO_MIME_TYPES
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2017-01-09 15:00:55 +02:00
|
|
|
node(:settings) { @web_settings }
|