Dan Harmon admitted on his podcast that he sexually harassed a female writer while working on “Community” and offered up his apology, and she tweeted that she accepted it.

Megan Ganz — who in addition to writing for “Community,” has also written for “Modern Family,” “It’s Always Sunny in Philadelphia,” and “The Last Man on Earth” — had called Harmon out earlier this month for what went down when they worked together.

She wrote on Twitter, “I wish my memories were foggier. I wish there was a way to fix it. It took me years to believe in my talents again, to trust a boss when he complimented me and not cringe when he asked for my number. I was afraid to be enthusiastic, knowing it might be turned against me later.”

I wish my memories were foggier. I wish there was a way to fix it. It took me years to believe in my talents again, to trust a boss when he complimented me and not cringe when he asked for my number. I was afraid to be enthusiastic, knowing it might be turned against me later.

Harmon finally responded on Thursday, launching into a 7-minute monologue during his “Harmontown” podcast.

“The most clinical way I can put it in fessing up to my crimes is that I was attracted to a writer that I had power over because I was a showrunner. And I knew enough to know that these feelings were bad news,” Harmon said, never referring to Ganz by name.

“I knew that they ran the risk of undercutting people’s faith in my judgment, her faith in her talent, the other writers’ respect for me, the entire production, the audience. I knew that I wasn’t doing anybody any favors by feeling these things, and so I did the cowardly, easiest, laziest thing you could do with feelings like that, and I didn’t deal with them. And in not dealing with them, I made everybody else deal with them. Especially her.”

Ganz listened to the podcast and tweeted her reaction, saying, “I didn’t bring up this mess just to sweep it back under the rug. But I find myself in the odd position of having requested an apology publicly, and then having received one—a good one—also publicly … It’s only seven minutes long, but it is a masterclass in How to Apologize. He’s not rationalizing or justifying or making excuses. He doesn’t just vaguely acknowledge some general wrongdoing in the past. He gives a full account.”

She continued, “This was never about vengeance; it’s about vindication. That’s why it didn’t feel right to just accept his apology in private (although I did that, too). Because if any part of this process should be done in the light, it’s the forgiveness part. And so, @danharmon, I forgive you.”

This was never about vengeance; it's about vindication. That's why it didn’t feel right to just accept his apology in private (although I did that, too). Because if any part of this process should be done in the light, it’s the forgiveness part. And so, @danharmon, I forgive you.