A straphanger caught on viral video kicking and hurling a racial slur at a fellow passenger was sentenced Wednesday to just probation and a day of anger management class — but not before she blew up again outside the courtroom.

“Did I say something f—ing funny?” Anna Lushchinskaya, 42, snapped at a reporter prior to her sentencing in Brooklyn Supreme Court, accusing the journalist of laughing at her while she answered questions.

Lushchinskaya was there to be sentenced for the December 2018 incident, in which she was caught in the viral video kicking a woman on a D train in Brooklyn and calling her a “f—king c–-nk.”

She was initially charged with felony assault and other raps for that and a second incident six months earlier, when she allegedly sprayed riders with an unknown substance on the same line.

But she pleaded guilty in November to a lesser charge of second-degree menacing for the December case in exchange for the slap-on-the-wrist sentence — two years of probation and one day in an anger management class — which was officially meted out by Justice Danny Chun on Wednesday.

Prior to going before the judge — and snapping at the reporter — Lushchinskaya repeatedly insisted her meltdown was actually an act of self-defense.

“I was attacked by a woman of Asian descent and a man of Spanish descent,” said the woman, who wore a black puffy coat and sunglasses to her day of reckoning. “I was acting in self-defense.”

John Tanios, 37, an alleged victim of the June spraying incident, said afterwards: “I think she needs help … She needs psychiatric help.”