A high school cheerleader can’t be kicked off the squad for creating a profanity-laden Snapchat post in front of a convenience store, a federal judge has ruled.

The parents of the cheerleader, a sophomore at Mahanoy Area High School referred to in court papers as B.L., sued the district for punishing their daughter for private, out-of-school speech, and asked the court for an injunction.