Two things could be right at the same time.
1. It is an evil act to publicize information that can negatively impact your community, and you deserve to be mobbed.
2. It is wrong for your child or student's chinuch to allow them to join a mob, for any reason.