He pleaded guilty to a charge of threatening to publish intimate pictures of a person, intending to cause them harm.