def _add_additional_response_fields(request, serialized_discussion_entities, usernames, discussion_entity_type, include_profile_image):
 if include_profile_image:
  username_profile_dict = _get_user_profile_dict(request, usernames=','.join(usernames))
  for discussion_entity in serialized_discussion_entities:
   discussion_entity['users'] = _get_users(discussion_entity_type, discussion_entity, username_profile_dict)
 return serialized_discussion_entities

def _add_additional_response_fields ( request , serialized_discussion_entities , usernames , discussion_entity_type , include_profile_image ) : if include_profile_image : username_profile_dict = _get_user_profile_dict ( request , usernames = ',' . join ( usernames ) ) for discussion_entity in serialized_discussion_entities : discussion_entity [ 'users' ] = _get_users ( discussion_entity_type , discussion_entity , username_profile_dict ) return serialized_discussion_entities
adds additional data to serialized discussion thread/comment .