home: Simplify logic for realm_icon_source/url.

This commit is contained in:
Tim Abbott
2017-03-07 22:08:58 -08:00
parent 72424f3a9f
commit 01129c1ab9

View File

@@ -214,8 +214,6 @@ def home_real(request):
password_auth_enabled = password_auth_enabled(user_profile.realm),
domain = user_profile.realm.domain,
domains = list_of_domains_for_realm(user_profile.realm),
realm_icon_url = register_ret['realm_icon_url'],
realm_icon_source = register_ret['realm_icon_source'],
name_changes_disabled = name_changes_disabled(user_profile.realm),
mandatory_topics = user_profile.realm.mandatory_topics,
show_digest_email = user_profile.realm.show_digest_email,
@@ -295,6 +293,8 @@ def home_real(request):
'realm_default_language',
'realm_default_streams',
'realm_emoji',
'realm_icon_source',
'realm_icon_url',
'realm_message_content_edit_limit_seconds',
'realm_name',
'realm_invite_by_admins_only',