A student was punished for filming professor’s anti-Trump rant. Then came the backlash.

Avi Selk and Peter Holley

When suspending Caleb O’Neil for recording his professor’s rant against then-President-elect Donald Trump, the dean of Orange Coast College said that the punishment should make the student “truly think through your actions and the consequences of those actions.”

But it was the college that rethought its actions — after two weeks of intense criticism that the California school was stifling a conservative student to protect a liberal professor.

The school canceled the suspension during a special board meeting Thursday, according to the Orange County Register, and issued a statement:

“The board believes this is in the interest of fairness and equity for all.”

“All” would include O’Neil — a 19-year-old Trump supporter — and his psychology professor Olga Perez Stable Cox, who called Trump a white supremacist in a classroom rant that O’Neil helped make viral.

Shortly after Election Day, Cox told her human sexuality class that Trump’s victory was “an act of terrorism.”