/**
* Prepares a user record for display. Note that this may be called on incomplete guest records.
*
* @param array $user User info
*
* @return array Prepared user info
*/
public function prepareUser(array $user)
{
if (empty($user['user_group_id']))
{
$user['display_style_group_id'] = self::$defaultGuestGroupId;
}
$user['customFields'] = (!empty($user['custom_fields']) ? @unserialize($user['custom_fields']) : array());
// "trusted" user check - used to determine if no follow is enabled
$user['isTrusted'] = (false && !empty($user['user_id']) && (!empty($user['is_admin']) || !empty($user['is_moderator'])));
if (XenForo_Visitor::hasInstance())
{
$user['isIgnored'] = XenForo_Visitor::getInstance()->isIgnoring($user['user_id']);
}
return $user;
}