Kyle Kashuv, a student at Marjory Stoneman Douglas High School who has emerged as a counterweight to some of his peers pushing for stricter gun laws, slammed former President Obama for writing an essay praising the student activists for Time magazine.

“This is so rich coming from @BarackObama,” Kashuv wrote on Twitter, referring to Obama’s short essay on five of the student survivors for Time's list, “The Most Influential People of 2018.”

Obama penned the essay about Davig Hogg, Emma González, Cameron Kasky, Jaclyn Corin and Alex Wind, who have become outspoken advocates for gun law reform since the deadly mass shooting at their high school in South Florida earlier this year.

Kashuv criticized Obama for not recognizing Andrew Pollack and Ryan Petty, both fathers of students killed during the February shooting.

“It's an absolute shame that @BarackObama gives no credit to @rpetty and @AndrewPollackFL who actually got the legislation passed,” Kashuv wrote.

This is so rich coming from @BarackObama. https://t.co/GNjZSg2bST — Kyle Kashuv (@KyleKashuv) April 19, 2018

He then quoted a portion of Obama’s essay that says the students “had some success persuading statehouses and some of the biggest gun retailers to change."

Obama praised the students in the entry, saying they were "shaking us out of our complacency” in their advocacy efforts following the shooting that left 17 people dead.

“They’re as comfortable speaking truth to power as they are dismissive of platitudes and punditry. And they live to mobilize their peers,” Obama wrote.

Kashuv since the shooting has emphasized the need to protect the Second Amendment. He has met with lawmakers on Capitol Hill and Supreme Court Justice Clarence Thomas.