The unicorn originally featured on one of Colorado-based potter Tom Edwards’ mugs, which carried a positive message about electric vehicles. Musk tweeted in February 2017 that it was “maybe my favourite mug ever.”

Months later, it was brought to Edwards’ attention that the image was popping up inside the operating system of Tesla vehicles and on a company Christmas card.

But Edwards’ daughter, Robin Edwards, called out the Tesla boss on Twitter. Musk, in now-deleted tweets, said legal action would be “kinda lame” and said his interest in the farting unicorn had “increased his [Edwards’] mug sales.”

“We have reached an agreement with Tesla that resolves our issues in a way that everyone feels good about,” he said. “It’s clear there were some misunderstandings that led to this escalating, but I’m just glad that everything has been cleared up.”