home.py: move autoscroll_forever to register_ret.

Move the user_profile data section down into fetch_initial_state_data so
it entirely pulls from register_ret for #3853
This commit is contained in:
fionabunny
2017-04-26 15:16:24 -07:00
committed by Tim Abbott
parent 22be291d96
commit 379a8afaae
2 changed files with 2 additions and 1 deletions

View File

@@ -212,7 +212,6 @@ def home_real(request):
user_id = user_profile.id,
is_admin = user_profile.is_realm_admin,
can_create_streams = user_profile.can_create_streams(),
autoscroll_forever = user_profile.autoscroll_forever,
# Realm foreign key data from register_ret.
# TODO: Rename these to match register_ret values.
@@ -240,6 +239,7 @@ def home_real(request):
page_params_core_fields = [
'alert_words',
'attachments',
'autoscroll_forever',
'avatar_source',
'avatar_url',
'avatar_url_medium',