Riley deleted the post, but the exposure — and the screenshots — remained.

On social media, some slammed Riley, while others defended him.

“A Georgia mayor giving out incorrect voting info without a disclaimer,” Twitter user @onestarr23 wrote. “Wooooow.”

“How could you see this as anything other than a joke,” user @Logan__Swartz wrote in a post.

Riley said he wasn’t trying to be ugly.

“People take things so seriously,” he told The Atlanta Journal-Constitution. “You can’t joke about anything anymore — especially on social media.”

Also, a group called the Democratic Coalition against Trump said it has filed a complaint with the Civil Rights Division of the Department of Justice over the post.

“While Mayor Riley seems to think his actions were a joke, it is clear that they were not. As a public official, you have the obligation to provide your constituents with correct information, not with partisan nonsense,” said Scott Dworkin, senior director of the group. “Attempting to prevent voters from voting by tricking them goes against the Voting Rights Act, plain and simple.”