Facebook has donated thousands of dollars to politicians who opposed “conversion therapy” bans during their time in office, a Daily Beast investigation has found.

The social media giant—which has previously touted its affiliation with organizations that support the LGBTQ community such as the Trevor Project—donated $7,000 to the campaign of Rep. Mimi Walters (R-CA), and $2,000 to the campaign of Rep. Darin LaHood (R-IL) in 2018.

Walters voted against a 2012 bill banning “sexual orientation conversion therapy,” aka the now-discredited and deeply harmful practice of “therapy” to “rid” LGBTQ people of their sexual orientation. Meanwhile, LaHood opposed a 2015 “conversion therapy” ban when he was in the state senate, the Daily Beast reported. Both bills passed, and “conversion therapy” is now outlawed in California and Illinois.

When questioned about the contributions, a Facebook spokesperson pointed to a company statement from 2017 that said, “In deciding which federal candidates to support, Facebook PAC considers whether an individual candidate’s policy stances are consistent with Facebook’s public policy agenda and business interests.” However, “a contribution to a candidate for office does not mean that we agree with every policy or position that candidate may espouse.”

In May 2017, Facebook announced they were partnering up with the Trevor Project, a suicide prevention service and support group for LGBTQ youth. It is currently leading the 50 Bill 50 States campaign to end conversion therapy in all 50 states.

Despite that and its other LGBTQ rights initiatives, Facebook came under fire earlier this year for promoting ads about “conversion therapy” to young LGBTQ people, which the company said was due to a “blunder” in its algorithms. It was also recently revealed that according to Facebook’s latest community standards, discussing “sexual preference” could be seen as sexual solicitation and get you banned.

The Daily Dot has reached out to Facebook and the Trevor Project for comment but hasn’t heard back as of this posting.

Read more of the Daily Beast’s report here.