- Affected version
 - 2.1.3
 
Because of the if check in `
	
	
	
		
Simple fix would be to change
	
	
	
		
				
			getIndexData, the profile user is being loaded for every profile post when bulk-indexing.
		PHP:
	
	    public function getIndexData(Entity $entity)
    {
        /** @var \XF\Entity\ProfilePostComment $entity */
        if (!$entity->ProfilePost || !$entity->ProfilePost->ProfileUser)
        {
            return null;
        }
...
	Simple fix would be to change
getEntityWith to have it in the with clause;
		PHP:
	
	    public function getEntityWith($forView = false)
    {
        $get = ['ProfilePost','ProfilePost.ProfileUser'];
...
       return $get;
    }