The announcement on Tuesday morning that Casey Affleck and Mel Gibson had been nominated for Academy Awards was immediately met with backlash by a number of people on social media.

'Congratulations on your Oscar nom, Mel Gibson, you racist, misogynistic, antisemite pig f***,' wrote Scandal star Josh Malina after Gibson earned a Best Director Oscar nomination for Hacksaw Ridge.

And Fresh Off the Boat actress Constance WU responded to the news that Casey Affleck has been nominated for Best Actor thanks to his work in Manchester By the Sea by writing: 'Men who sexually harass women 4 OSCAR! Bc good acting performance matters more than humanity,human integrity!Bc poor kid rly needs the help!'.

Scroll down for video

Backlash: The Oscar nominations for Casey Affleck (left) and Mel Gibson (right) have led to many expressing their outrage on social media

Response: 'Men who sexually harass women 4 OSCAR! Bc good acting performance matters more than humanity,human integrity!', wrote Constance Wu of Affleck

Anger: 'Congratulations on your Oscar nom, Mel Gibson, you racist, misogynistic, antisemite pig f***,' wrote Scandal star Josh Malina of Gibson

In 2010, actor and director Casey, 41, settled two civil lawsuits that were brought against him by a female producer and director of photography who worked with him on the Joaquin Phoenix film I'm Still Here.

Represented by the same lawyer, producer Amanda White sought $2m and cinematographer Magdalena Gorka sought $2.25m in their individual lawsuits.

White wrote on court papers that she 'was forced to endure uninvited and unwelcome sexual advances in the workplace.'

She went on to state in her filing: 'On one occasion, Affleck instructed a crew member to take off his pants in order to show [White] his penis, even after [White] objected.

'Affleck repeatedly referred to women as "cows"; he discussed his sexual exploits and those of other celebrities that he allegedly witnessed; and asked [White] after learning her age, "Isn't it about time you get pregnant."'

White also claimed that at one point she could not get into her bedroom while shooting in Costa Rica because 'Affleck and Phoenix locked themselves in her bedroom with two women.'

She said that later in the shoot Affleck 'attempted to manipulate [her] into staying in a hotel room with him, and when she resisted he grabbed her in a hostile manner in an effort to intimidate her into complying.'

Despite the past...: Affleck is nominated for Best Actor for Manchester By the Sea (above)

Gorka's allegations were just as serious, claiming that she was subject to 'routine instances of sexual harassment' on the set.'

She wrote in her court filing: 'Affleck and other members of the production team made lewd comments; they discussed engaging in sexual activity with [Gorka]; and they suggested that she have sex with the Camera assistant.'

Then one night, Gorka claims that Affleck got into bed with her while drunk when the crew was asked to stay at his |new York City apartment.

She was the lone female working on the set at that time.

'During the middle of the night, [Gorka] awoke to find Affleck lying in the bed next to her. Unbeknownst to [Gorka], Affleck had entered the bedroom while she was asleep and crawled into the bed,' read the court papers filed in the case.

'When she woke up, Affleck was curled up next to her in the bed wearing only his underwear and a t-shirt. He had his arm around her, was caressing her back, his face was within inches of her and his breath reeked of alcohol.'

Gorka stated in her filing that 'she did not know where he had touched her while she was sleeping or how long her had been there before she woke up.'

She claims that she then asked Affleck to leave, pointing out that he was married at the time to Phoenix's sister Summer, and then after resisting initially he did but 'slammed the door in anger.'

Gorka said she left the project soon after, but returned after White joined the crew and called her personally to ask her to come back.

She then left for a second time after the aforementioned Costa Rica incident.

Gorka noted in her filing that in 'her 16 years in the entertainment industry, [she] had never accused anyone of sexual harassment.'

Both lawsuits were settled out of court for an undisclosed amount in 2010, and neither woman has spoken publicly about the allegations.

Wu, responding to Affleck's nomination on Tuesday, also wrote; 'Boys! BUY ur way out of trouble by settling out of court!Just do a good acting job,thats all that matters!bc Art isn't about humanity,right?'

She also later noted: 'I've been counseled not to talk about this for career's sake. F my career then, I'm a woman & human first. That's what my craft is built on.'

One Twitter user wrote: 'casey affleck has sexually harassed multiple people. he doesn't deserve any praise or award, yet alone an oscar nomination, he's disgusting.'

And another commented: 'tell me again how being accused of sexual assault can ruin a man's career #CaseyAffleck.'

Gibson meanwhile was seen as a pariah and fodder for late-night comedians after a series of rants and scandals prompted some of the industry's top players to say they would not work with him just five years ago.

His profile nosedived in 2006 after he went into an anti-Semitic tirade as he was being arrested on the Pacific Coast Highway in Malibu, California, on suspicion of driving while drunk.

Gibson later apologized and was sentenced to probation and alcohol treatment.

Gibson then pleaded no contest in 2011 to one count of misdemeanor spousal battery of his former girlfriend Oksana Grigorieva.

He was sentenced to three years of probation, domestic violence counseling and two days of community service.

Audio recordings surfaced of disturbing arguments between the two, which included death threats.

Despite all that he received a nomination on Tuesday, his first since he won Best Director for the 1995 film Braveheart.

'I continue to be disgusted by mainstream Hollywood's acceptance and praise of anti-semite, racist, woman-abuser,' wrote one woman on Twitter about his nomination.

And writer Angelica Jade went off on the actor and director in a series of tweets, which she began by writing: 'Mel Gibson's comeback is one of the most disgusting things to witness.

'Remember Mel Gibson being nominated as Hollywood pats itself on the back for nominating some well deserved black artists.

'Don't buy into the narrative of Hollywood giving a f*** about women when Casey Affleck and Mel Gibson are nominated. The truth is clear.'