In this undated photo provided by the U.S. Army, Pfc. Chelsea Manning poses wearing a wig and lipstick. (U.S. Army via AP)

Whistleblower Chelsea Manning was found guilty Tuesday on four disciplinary charges and given 21 days of recreational restrictions for breaking military prison rules — keeping expired toothpaste and Vanity Fair’s Caitlyn Jenner cover, among other things, in her cell, her attorney said.

Manning’s attorney, Chase Strangio with the American Civil Liberties Union, said in a statement Manning was convicted during a four-hour, closed-door disciplinary hearing without legal representation. A message from Manning’s Twitter account said her restrictions include “no gym, library or outdoors.”

[5 of the most famous federal whistleblowers]

“Now these convictions will follow me through to any parole/clemency hearing forever,” the tweet said. “Was expecting to be in minimum custody in February, now years added.”

The transgender Army private was convicted in 2013 of espionage for leaking 700,000 top secret military documents to the whistleblower news site WikiLeaks and was sentenced to 35 years at the military prison at Fort Leavenworth in Kansas.

In July, she was written up for possessing prohibited property, such as books and magazines, while she was in administrative segregation; medicine misuse for having expired toothpaste; disorderly conduct for brushing food onto the floor, and disrespect, according to the Associated Press.

Manning faced a maximum sentence of indefinite solitary confinement.

[Chelsea Manning will begin gender treatment in military prison]

The U.S. military said last week it was committed to “a fair and equitable process,” during Manning’s disciplinary hearing, which it called “a common practice in correctional systems to hold prisoners accountable to facility rules.”

But just days before Manning’s hearing, a message from her Twitter account claimed she had been denied access to the prison’s legal library.

Support for Manning swelled. More than 100,000 people signed an online petition to urge officials to make her disciplinary hearing public.

“When I spoke to Chelsea earlier today she wanted to convey the message to supporters that she is so thankful for the thousands of people from around the world who let the government know we are watching and scrutinizing what happens to her behind prison walls,” Strangio said in a statement to Vanity Fair. “It was no doubt this support that kept her out of solitary confinement.

[Chelsea Manning, imprisoned for leaking secrets, to tweet from Fort Leavenworth]

“But the fact that Chelsea had to face today’s four-hour Disciplinary Board without counsel and will now be punished for daring to share her voice sets a concerning precedent for the remaining decades of her incarceration.”

“Chelsea’s ridiculous convictions today will not silence her,” Manning’s other attorney, Nancy Hollander, tweeted after the hearing. “And we will fight even harder in her appeal to overturn all her convictions.”

The military would not release any information on Manning’s disciplinary hearing, citing the Privacy Act of 1976, according to the Associated Press.

(This post has been updated to correct the spelling of Caitlyn Jenner’s first name.)