A southeastern Pennsylvania school district’s expulsion of a student over an apparently threatening Snapchat post violated the student’s constitutional right to free speech, the Commonwealth Court ruled.

Although the post sparked a series of events that led to disruption within the Delaware County school community, the court found that the student should not have been punished for it, as the school district failed to consider the context in which it was made.