Tenåring dømt til samfunnsstraff etter å ha slått til en annen festdeltaker.