April 13, 2016 | 2:09am  

Badmouthing de Blasio gets you suspended — but accepting gifts is OK

By Larry Celona, Tina Moore and Bruce Golding

A young cop was stripped of his gun, badge and paycheck just for speaking ill of Mayor Bill de Blasio — yet bosses whom the feds suspect of accepting lavish gifts for favors are still collecting their salaries.

Rank-and-file officers ripped the NYPD on Tuesday over the double standard and the rush to judgment.

“There’s a two-year investigation going on, with a deputy inspector [allegedly] getting diamonds, and they just got transferred,” one officer said.

“But a cop gives a guy a ticket and voices his opinion, and he gets suspended after a two-day investigation.”

Officer Joseph C. Spina, 28, is under investigation for “conduct unbecoming an officer”while ticketing an unlicensed motorist in the Bronx, NYPD spokesman Stephen Davis said.

The unidentified driver — who was pulled over Saturday for excessive noise from his car speakers — secretly recorded Spina saying that de Blasio “wants us to give out summonses,” according to a 10-second video posted later that day on YouTube.

In addition to blaming Hizzoner, Spina told the man, “I don’t know if you voted for him or not. I don’t live in the city. I wouldn’t have voted for him, because this is what he wants.”

The Bronx borough commander, Assistant Chief Larry Nikunen, put Spina on the shelf after being notified about the video by the NYPD’s Internal Affairs Bureau, Davis said.

Joseph C. Spina

A de Blasio spokeswoman denied City Hall had a hand in Spina’s suspension, insisting, “NYPD handles internal discipline, and the mayor trusts Commissioner Bratton’s decisions.” But spokeswoman Monica Klein wouldn’t say whether Hizzoner had ordered a ticket blitz as part of the Vision Zero plan he announced in 2014.

One cop complained, “It’s his idea, but we give out the punishment and the public takes it out on us.”

Additional reporting by Rich Calder