Ruthie Robertson, 22, knew her private Facebook post would be controversial among her Mormon friends. After all, as a “huge leftist living in a completely red state,” she was used to criticism about her outspoken views on feminism and politics.

She knew the post contradicted the views of her employer, Brigham Young University-Idaho, a private college affiliated with the Church of Jesus Christ of Latter-day Saints.

But Robertson, an adjunct professor of international politics, never expected to be fired because of it, she told The Washington Post.

“This is my official announcement and declaration that I believe heterosexuality and homosexuality are both natural and neither is sinful,” Robertson wrote in her post on June 5, in honor of Pride month.

“I will never support the phrase ‘love the sinner, hate the sin’ because that ‘sin’ is part of who that person is. Homosexuality and transgenderism are not sins; if God made us, and those are part of who we are … then God created that as well.”

Robertson was not friends with any of her students on Facebook, and made sure to keep the post private. But she said one of her Facebook friends reported the post to her department head and another sent an email to the school’s president.

The next day she met with administrators, who she said implied that if she did not take down the Facebook post, she would lose her job. She refused, standing by her beliefs and maintaining that she never expressed her political or social opinions in the classroom.

A week later, after she still had not taken down the post, one of the administrators called her to inform her she would not be returning to teach classes in the fall. The university would allow her to finish classes through the rest of the semester, which ended Tuesday. But beyond that, her contract was terminated.

“Nothing in the contract says you can’t privately disagree with something with the church,” Robertson told The Post. “There is nothing in the contract that says I can’t express my personal opinions on my Facebook.”