Washington (CNN) Rep. Alexandria Ocasio-Cortez is being sued for blocking a former Democratic New York state assemblyman on Twitter who is citing a similar court case against President Donald Trump.

Dov Hikind claims the Tuesday ruling from an appeals court that found Trump violated the First Amendment by blocking users on Twitter makes it unconstitutional for Ocasio-Cortez, a New York Democrat, to block him.

He wants the court to restore his access to Ocasio-Cortez's account and prevent her from blocking him in the future. He claims the freshman congresswoman is violating the First Amendment, according to a court filing in the documents filed in the US District Court for the Eastern District of New York.

"This very practice has been litigated with regard to President Donald Trump blocking individuals on Twitter, and has recently been found unconstitutional," the lawsuit says.

Hikind posted on Twitter, "The law applies to socialists just as it does to capitalists. See ya in court, @AOC."

Read More