The Trump Organization appeared to be breaking a 2017 promise not to mention President Donald Trump in social media posts as his Ireland golf resort promoted the president’s visit.

The Trump Doonbeg resort sent out two now-deleted tweets Friday morning promoting the president’s visit. One tweet shows Marine One landing at the resort, with a caption saying “it was an honour” to have the president and first lady visit. In another tweet, Trump is seen golfing.

In 2017, the Trump Organization pledged that “no communications of the Organization, including social media accounts, will reference or otherwise be tied to President-Elect Trump’s role as President of the United States or the Office of the Presidency.”

RELATED: Donald Trump golf courses in Scotland

14 PHOTOS Donald Trump Golf Course in Scotland See Gallery Donald Trump Golf Course in Scotland TURNBURRY, SCOTLAND - JUNE 08: Donald Trump visits Turnberry Golf Club, after its $10 Million refurbishment on June 8, 2015 in Turnberry, Scotland. (Photo by Ian MacNicol/Getty Images) EDINBURGH, SCOTLAND - APRIL 25: Anti-wind farm protestors demonstrate outside the Scottish Parliament as American tycoon Donald Trump pays a visit on April 25, 20012 in Edinburgh, Scotland. Trump spoke of his concerns over a proposed wind farm, mooted to built near his new GBP 1 billion golf resort, telling the Scottish Parliament that they will destroy tourism in the country.. (Photo by Jeff J Mitchell/Getty Images) ABERDEEN, SCOTLAND - APRIL 23: Work continues on Donald Trump's golf course currently under construction on the Menie estate on April 23, 2012 in Aberdeen, Scotland. Mr Trump will appear before the Scottish Parliaments Economy, Energy and Tourism committee on Wednesday to voice his concerns over the Scottish government's policy of promoting wind power. A decision is expected later this year on the government's plans to erect 11 turbines of the coast next to the Menie estate golf course. (Photo by Jeff J Mitchell/Getty Images) ABERDEEN, SCOTLAND - JULY 10: 10: Donald Trump and Colin Montgomerie share a joke after the opening of The Trump International Golf Links Course on July 10, 2012 in Balmedie, Scotland. The controversial Â£100m course opens to the public on Sunday July 15. Further plans to build hotels and homes on the site have been put on hold until a decision has been made on the building of an offshore windfarm nearby. (Photo by Ian MacNicol/Getty Images) ABERDEEN, SCOTLAND - APRIL 23: Work continues on Donald Trump's golf course currently under construction on the Menie estate on April 23, 2012 in Aberdeen, Scotland. Mr Trump will appear before the Scottish Parliaments Economy, Energy and Tourism committee on Wednesday to voice his concerns over the Scottish government's policy of promoting wind power. A decision is expected later this year on the government's plans to erect 11 turbines of the coast next to the Menie estate golf course. (Photo by Jeff J Mitchell/Getty Images) US tycoon Donald Trump (C) addresses the media as he officially opens his new multi-million pound Trump International Golf Links course in Aberdeenshire, Scotland, on July 10, 2012. Work on the course began in July 2010, four years after the plans were originally submitted. AFP PHOTO / Andy Buchanan (Photo credit should read Andy Buchanan/AFP/GettyImages) ABERDEEN, SCOTLAND - APRIL 23: Michael Forbes stands beside his shed, near to Donald Trump's golf course which is currently under construction on the Menie estate on April 23, 2012 in Aberdeen, Scotland. Mr Trump will appear before the Scottish Parliaments Economy, Energy and Tourism committee on Wednesday to voice his concerns over the Scottish government's policy of promoting wind power. A decision is expected later this year on the government's plans to erect 11 turbines of the coast next to the Menie estate golf course. (Photo by Jeff J Mitchell/Getty Images) ABERDEEN, SCOTLAND - JULY 10: Donald Trump plays a round of golf after the opening of The Trump International Golf Links Course on July 10, 2012 in Balmedie, Scotland. The controversial Â£100m course opens to the public on Sunday July 15. Further plans to build hotels and homes on the site have been put on hold until a decision has been made on the building of an offshore windfarm nearby. (Photo by Ian MacNicol/Getty Images) US tycoon Donald Trump plays a stroke as he officially opens his new multi-million pound Trump International Golf Links course in Aberdeenshire, Scotland, on July 10, 2012. Work on the course began in July 2010, four years after the plans were originally submitted. AFP PHOTO / Andy Buchanan (Photo credit should read Andy Buchanan/AFP/GettyImages) ABERDEEN, SCOTLAND - APRIL 23: Michael Forbes stands beside his shed, near to Donald Trump's golf course which is currently under construction on the Menie estate on April 23, 2012 in Aberdeen, Scotland. Mr Trump will appear before the Scottish Parliaments Economy, Energy and Tourism committee on Wednesday to voice his concerns over the Scottish government's policy of promoting wind power. A decision is expected later this year on the government's plans to erect 11 turbines of the coast next to the Menie estate golf course. (Photo by Jeff J Mitchell/Getty Images) ABERDEEN, SCOTLAND - JULY 10: Donald Trump (2nd R) opens The Trump International Golf Links Course as (L-R) George O'Grady, Colin Montgomerie and Don Trump Jr look on, on July 10, 2012 in Balmedie, Scotland. The controversial Â£100m course opens to the public on Sunday July 15. Further plans to build hotels and homes on the site have been put on hold until a decision has been made on the building of an offshore windfarm nearby. (Photo by Ian MacNicol/Getty Images) ABERDEEN, SCOTLAND - OCTOBER 08: Tripping Up Trump campaigner holds a copy of the newspaper Menie Voices outside Robert Gordon University on October 8, 2010 in Aberdeen, Scotland. US business man Donald Trump recieved his honourary award of Doctor of Business Administration from the University. Mr Trump is currently building a golf development at the Menie Eastate outside Aberdeen. (Photo by Jeff J Mitchell/Getty Images) EDINBURGH, SCOTLAND - APRIL 25: Donald Trump speaks during a press conference following his address to the Scottish Parliament on April 25, 20012 in Edinburgh, Scotland. Trump spoke of his concerns over a proposed wind farm, mooted to built near his new GBP 1 billion golf resort, telling the Scottish Parliament that they will destroy tourism in the country. (Photo by Jeff J Mitchell/Getty Images) ABERDEEN, SCOTLAND - APRIL 23: Work continues on Donald Trump's golf course currently under construction on the Menie estate on April 23, 2012 in Aberdeen, Scotland. Mr Trump will appear before the Scottish Parliaments Economy, Energy and Tourism committee on Wednesday to voice his concerns over the Scottish government's policy of promoting wind power. A decision is expected later this year on the government's plans to erect 11 turbines of the coast next to the Menie estate golf course. (Photo by Jeff J Mitchell/Getty Images) Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

Zach Everson, a journalist reporting on conflicts at Trump’s Washington hotel, first noted the connection on Friday. Everson took screen shots of Trump Doonbeg’s tweets before they were deleted.

The U.S. president's Irish golf course just used the U.S. president to promote itself—for the second time in a half-hour.



The Trump Org pledged not to use the U.S. presidency to promote itself.



More on this coming soon in today's @1100Penn. Subscribe: https://t.co/UDygGYH7c4pic.twitter.com/rdXFfplDuD — Zach Everson (@Z_Everson) June 7, 2019

Eric Trump told The Washington Post in 2017, “There are lines that we would never cross, and that’s mixing business with anything government.”

Trump stayed at the money-losing Doonbeg resort for two nights after his official state visit to Britain. The president’s unusual itinerary required him to fly to Ireland on Wednesday, meeting with Ireland’s prime minister before flying to Doonbeg, a small oceanside village on Ireland’s west coast. Trump flew to France on Thursday for a D-Day commemoration and returned to Doonbeg on Thursday night.

Before leaving Washington, Trump said staying at Doonbeg was “convenient and it’s a great place.”

White House Press Secretary Sarah Sanders and her deputy Hogan Gidley, have both made posts on Instagram showing the Doonbeg resort during their stay. Gidley’s recent posts show off other Trump properties, including Trump Tower in New York and Trump National Golf Club in Washington.

Trump has visited 12 properties branded with his name during his time in office, according to the Post. Those include Mar-a-Lago in Palm Beach, Fla., and golf clubs in California, Florida, New Jersey and Scotland.

After winning the 2016 election, Trump decided not to divest from his properties. Instead, he placed control of the Trump Organization in the hands of his oldest sons, Eric and Donald Jr. Both sons accompanied Trump and Melania on their state visit in Britain despite not holding positions in the Trump administration.

Trump’s visit to Doonbeg — and the resort’s promotion of his stay — come at a time when Democrats in the House have launched numerous investigations into the president’s business dealings. A fight over Trump’s tax returns and banking records continues in the courts, as Democrats hope to determine whether the president has inflated his net worth or made foreign policy decisions to benefit his businesses.

A federal judge ruled on May 22 that Democrats’ subpoenas to Deutsche Bank and Capital One for the president’s financial records have “a legitimate legislative purpose.” Lawyers for the president had argued that the subpoenas didn’t have a lawful purpose and were therefore unconstitutional.

Democrats in the House maintain that they need records from the two banks, former lenders to Trump, to investigate possible money laundering in Russia and Eastern Europe. Trump’s lawyers have appealed the decision to the 2nd U.S. Circuit Court of Appeals in Manhattan.

_____

Read more from Yahoo News:

More from :

Trump insults Mueller and Pelosi at U.S. military cemetery in France

Trump admits his Cabinet had 'some clinkers'

Trump: 'I don't see any protests' in London, so they're fake news