If you've ever regretted a social media post, you're not alone. Barbra Streisand is in the same boat.

The star made an awkward flub on Instagram, asking actress Melissa McCarthy a rather personal question in a very public forum. 

McCarthy posted photos with director Adam Shankman from an event she attended in celebration of choreographer and director Matthew Bourne. She looked stunning in a mint green tulle dress. 

MELISSA MCCARTHY SAYS 'BLOOD DRAINED OUT' OF HER WHEN INTERVIEWER ASKED ABOUT HER 'TREMENDOUS SIZE'

Barbra Streisand in a sparkly black outfit and matching beret looks animated split Melilssa McCarthy in a red dress with pink shoulders looks pretty on the carpet

Barbra Streisand, left, commented on Melissa McCarthy's Instagram, asking if she had taken the popular weight-loss drug Ozempic. (Getty Images)

In a since-deleted comment, Streisand, 82, wrote, "Give him my regards did you take Ozempic?" referring to the FDA approved Type 2 diabetes medication that is now frequently used for weight loss.

APP USERS CLICK HERE TO VIEW INSTAGRAM

The bluntness of the question generated immediate conversation online, with many users chalking this up to user error on Streisand's part. Some believed that the "Funny Girl" actress had meant to ask McCarthy about her weight in a private message.

"I feel like this was meant to be a [direct message]," one user suggested. "Does Babs know that we can all see that?" someone asked. "Babs giving major boomer energy here," another claimed.

Melissa McCarthy in a mint green tulle dress with a matching blazer walks with director Adam Shankman in a light pink suit

Melissa McCarthy posted this paparazzi photo of her and Adam Shankman on her Instagram. (Hollywood To You/Star Max/GC Images/Getty Images)

LIKE WHAT YOU’RE READING? CLICK HERE FOR MORE ENTERTAINMENT NEWS

Some teased Streisand for her mistake, writing, "Take the iPad away from Babs immediately!" and "Barbra! You can’t just ask people if they take ozempic!"

Melissa McCarthy in a black patterned dress has her shoulders hugged by Barbra Streisand in black

Melissa McCarthy, left, and Barbra Streisand pose for a photo together in 2016. (Getty Images)

CLICK HERE TO SIGN UP FOR THE ENTERTAINMENT NEWSLETTER

However, others were furious with Streisand's remarks. "Yikes to everyone saying it should be a private message, this is an inside thought that doesn’t make it to the outside," one person commented. "She's an old lady. Old ladies say mean things," another said. 

"Melissa has lost weight before. This was just a cruel comment. Weird," a user wrote.

Screenshot of Barbra Streisand's Instagram story

Barbra Streisand said she was trying to pay her friend Melissa McCarthy a compliment.

With all the attention her comment received, Streisand found it necessary to acknowledge her blunder. 

"OMG - I went on Instagram to see the photos we'd posted of the beautiful flowers I'd received for my birthday! Below them was a photo of my friend Melissa McCarthy who I sang with on my Encore album," she wrote on her Instagram Story. "She looked fantastic! I just wanted to pay her a compliment. I forgot the world is reading!"

Melissa McCarthy looks partially over her shoulder in a black outfit on the carpet with a wide open smile

Melissa McCarthy's weight has fluctuated over the course of her career. The actress has shared several instances where people have said cruel things to her because of her size. (Bruce Glikas/WireImage/Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

McCarthy has not shied away from speaking about her fluctuating weight before. People within the industry have previously made cruel remarks about McCarthy's size.

"I've been every size in the world. Parts of my 20s, I was in great shape, but I didn't appreciate it. If I was a 6 or an 8, I thought, 'Why aren't I a 2 or a 4?'" she told Us Weekly many years ago. "Now I feel like I have two great kids and the dreamiest husband on the planet, and everything else is just a work in progress."

A representative for McCarthy did not immediately respond to Fox News Digital's request for comment.