actions: Use get_system_bot in get_cross_realm_dicts.

This commit is contained in:
Vishnu Ks
2017-07-21 00:46:43 +05:30
committed by Tim Abbott
parent 6562b779ec
commit 39488fb181

View File

@@ -3087,7 +3087,7 @@ def get_status_dict(requesting_user_profile):
def get_cross_realm_dicts():
# type: () -> List[Dict[str, Any]]
users = [get_user_profile_by_email(email) for email in get_cross_realm_emails()]
users = [get_system_bot(email) for email in get_cross_realm_emails()]
return [{'email': user.email,
'user_id': user.id,
'is_admin': user.is_realm_admin,