about summary refs log tree commit diff
path: root/app/views/home/initial_state.json.rabl
blob: 0e9736f5f9f27e80aa033c1c39d57fe0ed245b93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 }