Replace @locations instance variable for posts