The Pennsylvania Supreme Court has ruled that probation can only be revoked where there is a violation of a specific term of the probation order, reversing a lower court’s finding that a defendant violated his probation by posting photos of guns, money and drugs on social media.

In Commonwealth v. Foster, the court unanimously ruled to vacate a Superior Court decision that had upheld an 11.5-to-23-month jail sentence, plus seven years’ probation, imposed by a Philadelphia trial judge on defendant Darnell Foster for violating his probation.