(CNN) Well played Ansel Elgort.

The 26-year-old posted a photo of himself nude in the shower on his verified Instagram account Tuesday, but he did it for a good cause.

The "Fault in Our Stars" actor wrote "OnlyFans LINK IN BIO" in the photos caption.

That link took followers to a GoFundMe page for fellow actor Jeffrey Wright's Brooklyn For Life! fundraiser which is seeking to feed those on the frontlines of the fight against Covid-19.

"Our goal is to fund each Brooklyn for Life! restaurant, enabling them to provide - at no cost to the recipients - at least 75-100 meals per day for delivery to the Brooklyn frontlines of this pandemic," a statement reads on the GoFund me page.

Read More