2017-01-09 07:00:55 -06:00
|
|
|
object false
|
|
|
|
|
2017-02-06 16:16:20 -06:00
|
|
|
node(:meta) do
|
2017-01-09 07:00:55 -06:00
|
|
|
{
|
2017-04-14 19:32:42 -05:00
|
|
|
streaming_api_base_url: @streaming_api_base_url,
|
2017-01-09 07:00:55 -06:00
|
|
|
access_token: @token,
|
|
|
|
locale: I18n.locale,
|
2017-04-17 17:16:32 -05:00
|
|
|
domain: site_hostname,
|
2017-01-09 07:00:55 -06:00
|
|
|
me: current_account.id,
|
2017-04-16 13:32:00 -05:00
|
|
|
admin: @admin.try(:id),
|
2017-04-11 09:10:16 -05:00
|
|
|
boost_modal: current_account.user.setting_boost_modal,
|
2017-05-29 10:56:13 -05:00
|
|
|
delete_modal: current_account.user.setting_delete_modal,
|
2017-04-17 05:14:03 -05:00
|
|
|
auto_play_gif: current_account.user.setting_auto_play_gif,
|
2017-07-06 15:39:56 -05:00
|
|
|
system_font_ui: current_account.user.setting_system_font_ui,
|
2017-01-09 07:00:55 -06:00
|
|
|
}
|
2017-02-06 16:16:20 -06:00
|
|
|
end
|
2017-01-09 07:00:55 -06:00
|
|
|
|
2017-02-06 16:16:20 -06:00
|
|
|
node(:compose) do
|
2017-01-09 07:00:55 -06:00
|
|
|
{
|
|
|
|
me: current_account.id,
|
2017-02-06 16:16:20 -06:00
|
|
|
default_privacy: current_account.user.setting_default_privacy,
|
2017-01-09 07:00:55 -06:00
|
|
|
}
|
2017-02-06 16:16:20 -06:00
|
|
|
end
|
2017-01-09 07:00:55 -06:00
|
|
|
|
2017-02-06 16:16:20 -06:00
|
|
|
node(:accounts) do
|
2017-04-16 13:32:00 -05:00
|
|
|
store = {}
|
2017-07-06 21:02:06 -05:00
|
|
|
store[current_account.id] = ActiveModelSerializers::SerializableResource.new(current_account, serializer: REST::AccountSerializer)
|
|
|
|
store[@admin.id] = ActiveModelSerializers::SerializableResource.new(@admin, serializer: REST::AccountSerializer) unless @admin.nil?
|
2017-04-16 13:32:00 -05:00
|
|
|
store
|
2017-02-06 16:16:20 -06:00
|
|
|
end
|
2017-01-09 07:00:55 -06:00
|
|
|
|
2017-05-08 09:49:53 -05:00
|
|
|
node(:media_attachments) do
|
|
|
|
{
|
|
|
|
accept_content_types: MediaAttachment::IMAGE_MIME_TYPES + MediaAttachment::VIDEO_MIME_TYPES
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2017-01-09 07:00:55 -06:00
|
|
|
node(:settings) { @web_settings }
|