FILE - In this Thursday, Oct. 11, 2018, file photo, adult film actress Stormy Daniels arrives for the opening of the adult entertainment fair "Venus," in Berlin. On Monday, Oct. 15, 2018, a federal judge dismissed Daniels' defamation lawsuit against President Donald Trump. (AP Photo/Markus Schreiber, File)

FILE - In this Thursday, Oct. 11, 2018, file photo, adult film actress Stormy Daniels arrives for the opening of the adult entertainment fair "Venus," in Berlin. On Monday, Oct. 15, 2018, a federal judge dismissed Daniels' defamation lawsuit against President Donald Trump. (AP Photo/Markus Schreiber, File)

WASHINGTON (AP) — President Donald Trump is insulting the physical appearance of porn actress Stormy Daniels, calling her “Horseface” in a tweet about a recent legal ruling.

A federal judge dismissed Daniels’ defamation lawsuit against Trump.

Daniels alleges she had an affair with Trump in 2006 and sued him in April. The defamation lawsuit came after Trump tweeted about a composite sketch of a man Daniels says threatened her in 2011 to keep quiet about an alleged affair. He called it a “total con job.”

The judge on Monday said Trump’s tweet was a “hyperbolic statement” protected under the First Amendment.

Trump tweeted: “Great, now I can go after Horseface and her 3rd rate lawyer.”

Daniels’ attorney Michael Avenatti called Trump’s comments “outrageous.”

Trump has a history of derogatory comments about women’s appearances.