A former staffer for a Queens state senator who has been working to unseat his old boss was fired by the pol several months ago — after porn links were found on his office computer, The Post has learned

Jeffrey Griffin, 33, was a constituent liaison for Sen. Joe Addabbo until the worker began arguing with other staffers and the XXX links were discovered on his office computer, according to Senate sources and Griffin. He was fired in June.

Before he was fired, Griffin had told a manager at Addabo’s Middle Village office to “go f–k” himself as the two men argued over affordable housing. The higher-up had just said something offensive to Griffin about his work ethic, Griffin claimed.

Griffin stormed off and filed a personnel complaint with the Senate against the other man. He wrote in the complaint that he was being subject to “rude” and “hostile” remarks, adding he was the victim of “disparate” treatment because a female staffer in the office was allowed to wear casual shoes and he wasn’t, according to a copy of the letter provided by Griffin.

Addabbo says Griffin’s allegations were unfounded.

But while the Senate was still investigating Griffin’s complaints, his coworkers used his computer and discovered dozens of dirty Web sites bookmarked on the machine, including a PornHub link for Jessa Rhodes, known for her “barely legal” look, according to records submitted to the Senate. The link was visible directly from Griffin’s Google chrome toolbar.

Staffers later discovered at least 29 other nudie links also bookmarked on the taxpayer-funded computer, including pages for porn stars such as Alana Rains, Miley May, Remy Lex and Aubrey Black, the records show.

Griffin told The Post that the bookmarks were on his personal Google account, which automatically popped up on his office computer because “it just signs in like that.

“I never actually looked at any porn on my computer there. That’s actually a huge shock to me’’ that the bookmarks would have shown up, he said.

“I’m sorry I have porn bookmarks on my personal computer. My Gmail account signed into my professional computer.”

But the situation was reported to the Senate, which was already investigating Griffin’s personnel complaint against the office manager, and at the end of its probe, the Senate fired Griffin, according to sources and Addabbo.

“[Griffin] had personality problems with the staff, and he brought a complaint forward. … [It] was unfounded and in the end, the Senate fired him,” Addabbo told The Post, adding that Griffin’s “office activities” also contributed to him getting the boot. He refused to elaborate.

The Senate declined comment.

Griffin ended up stirring up more trouble at a political marketing company where he got a gig after the Senate fired him.

There, he offered a lesbian employee his sperm so she could conceive a child, a comment that cost him his job for a second time.

Griffin said the remark “was never meant to make her uncomfortable.”

The Long Island native launched a “Joe’s Gotta Go” campaign targeting Addabo last month, teaming up with the far-left political group Rockaway Revolution in the borough to try to enlist a contender to take on the nine-year veteran office-holder.

Griffin said they have already found a “serious candidate” they’re vetting now for the 2020 Senate District 15 race.

Rockaway Revolution, calling itself a “women-led’’ group, told The Post in an e-mail that it had not been aware of why Griffin was fired by the Senate but Abbaddo was getting “the much-needed challenge he deserves.”

Griffin said he is working against his former boss simply because ““we have a lot of big issues that are going to need a lot of big ideas and we are going to need someone that’s going to put their neck out there and fight for someone.

“I’ve been working in progressive politics for years, so it’s not just based on disliking Joe,” Griffin said.

Addabbo — who hasn’t faced a democratic challenger since he beat out Republican incumbent Serphin Maltese in 2008 — says, bring it on.

“It’s poor strategy because what it did is, it woke up my constituents and my supporters,” he said of Griffin’s push to oust him.

“Early on, my people see something like that and they get energized.”

Additional reporting by Nicholas Fugallo and Bernadette Hogan