Media and Hollywood leftists predictably reacted in horror after President Donald Trump signed several Make America Great Again campaign hats owned by members of the military.

Trump made a surprise trip to visit the troops in Iraq and Germany on Wednesday, spending time greeting the troops, snapping selfies, and giving autographs. Some of them brought Trump their MAGA hats for the president to sign.

“Just awful,” wrote actress Mia Farrow on Twitter in response to the news.

CNN analyst and former member of the Obama administration John Kirby warned the troops that having a Trump campaign hat could be breaking military guidelines.

“It is, in fact, a campaign slogan, that is a campaign item, and it is completely inappropriate for the troops to do this,” Kirby said.

CNN continued to air segments about the “controversy.”

“It’s just not appropriate in front of a military audience,” Ret. Lt. Gen. Mark Hertling said on CNN Thursday morning.

Ret. Lt. Gen. @MarkHertling says President Trump signing MAGA hats during his trip to troops in Iraq was “over the top.” “It’s just not appropriate in front of a military audience,” he says about Trump discussing domestic politics during the visit. https://t.co/5CZln009mH pic.twitter.com/TTcNQralS6 — New Day (@NewDay) December 27, 2018

Trump also signed a soldier’s arm patch that read ‘Trump 2020.’

In Germany, several soldiers brought their MAGA hats during their meeting with the president. Another soldier was spotted carrying a Trump flag.

#maga hat contingent at Ramstein waiting for President Trump pic.twitter.com/18wdP87vZK — Jennifer Epstein (@jeneps) December 27, 2018

Trump flag (she dropped it after she saw me taking a photo) pic.twitter.com/LhPwUNdEK3 — Jennifer Epstein (@jeneps) December 27, 2018

Philippe Reines, a former adviser for failed presidential candidate Hillary Clinton doubted whether the troops even purchased their own hats.

trump signed MAGA 2020 hats. Safe bet our troops in Iraq aren’t buying and shipping hats to themselves 6,000 miles away in case he drops by. Which means rbis was another taxpayer funded trump commercial. And unethical. Right @waltshaub? Next Up: A fundraising tweet. pic.twitter.com/XNoIUdSGJa — Philippe Reines (@PhilippeReines) December 26, 2018

Trump’s opponents continued to complain on social media.

“As a former Navy JAG, I can tell you that engaging in partisan political activity such as flying a Trump flag or wearing a MAGA hat, while in uniform is a violation of the Uniform Code of Military Justice and its implementing regs,” wrote Pam Keith, a Democratic candidate for Congress in Florida.

“That’s a Art 32 offense for conduct unbecoming of an officer,” wrote MSNBC analyst Malcolm Nance.