This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/views/home/initial_state.json.rabl

25 lines
359 B
Plaintext
Raw Normal View History

object false
node(:meta) {
{
access_token: @token,
locale: I18n.locale,
me: current_account.id,
}
}
node(:compose) {
{
me: current_account.id,
private: current_account.locked?,
}
}
node(:accounts) {
{
current_account.id => partial('api/v1/accounts/show', object: current_account),
}
}
node(:settings) { @web_settings }