diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-06 23:16:20 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-06 23:16:20 +0100 |
commit | 347a153b3dc73068aedf7510c395cc350a553629 (patch) | |
tree | 8befe52ea5aa0525aae8ecd08f32a4e820d33471 /app/views/home | |
parent | 4d2be9f43273d010d683a0fccda97974b7249579 (diff) |
Add API modifiers to limit returned toots from public/hashtag timelines
to only those from local users; Add link to "extended information" to getting started in the UI; Add defaults for posting privacy; Change how publish button looks depending on posting privacy chosen
Diffstat (limited to 'app/views/home')
-rw-r--r-- | app/views/home/initial_state.json.rabl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/home/initial_state.json.rabl b/app/views/home/initial_state.json.rabl index 0e9736f5f..71949ab0e 100644 --- a/app/views/home/initial_state.json.rabl +++ b/app/views/home/initial_state.json.rabl @@ -1,24 +1,24 @@ object false -node(:meta) { +node(:meta) do { access_token: @token, locale: I18n.locale, me: current_account.id, } -} +end -node(:compose) { +node(:compose) do { me: current_account.id, - private: current_account.locked?, + default_privacy: current_account.user.setting_default_privacy, } -} +end -node(:accounts) { +node(:accounts) do { current_account.id => partial('api/v1/accounts/show', object: current_account), } -} +end node(:settings) { @web_settings } |