Actress, comedian and talk show host Whoopi Goldberg on Friday posted a video message to the presidents of Nigeria and Uganda about anti-gay legislation each signed in their respective nations.

“You're on the wrong side of history,” Goldberg said in the two-minute video. “You let people come over to your country and make you believe an untruth.”

“Gay people, black people, people people, we're all human. We all face these issues. And it doesn't roll in any country. We don't put up with it anymore here in the United States because it was wrong. It was wrong for us, it's wrong for you.”

Nigerian President Goodluck Jonathan quietly signed legislation increasing the penalties for homosexuality last month, while Ugandan President Yoweri Museveni signed a similar bill last week.

“It isn't right to imprison someone for who they are, for who they love,” Goldberg said. (The video is embedded on this page. Visit our video library for more videos.)

The Obama administration has condemned both laws.

(Related: John Kerry speaks to Uganda's Yoweri Museveni about anti-gay law.)