page_params: Include avatars and similar data in cross-realm bots.

This ensures that the format of this data structures matches that for
in-realm bots in the main users data structure (including avatars,
etc.).

Fixes #10138.
This commit is contained in:
Tim Abbott
2018-08-01 15:06:38 -07:00
parent ccba1e7c0e
commit 58ee3fa8c4
3 changed files with 9 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ def get_raw_user_data(realm_id: int, client_gravatar: bool) -> Dict[int, Dict[st
is_admin = row['is_realm_admin']
is_bot = row['is_bot']
# This format should align with get_cross_realm_dicts() and notify_created_user
result = dict(
email=row['email'],
user_id=row['id'],