Since it's Celestia's school, I imagine she handed out the diplomas herself. All Twilight needs to do is walk back up to the podium.