The Madras High Court moved to lift the ban on the condition that sexually explicit material will not be uploaded to the platform and that it will address any content-related complaint in three to 36 hours, failing which contempt of court proceedings would begin.

“We are glad about this decision and we believe it is also greatly welcomed by our thriving community in India, who use TikTok as a platform to showcase their creativity,” TikTok said in a statement, while promising to commit itself to “continuously enhancing our safety features as a testament to our ongoing commitment to our users in India.”

This isn’t TikTok’s first brush with trouble. Back in February, TikTok (previously Musical.ly) agreed to pay the US Federal Trade Commission $5.7 million to settle charges that it “illegally collected personal information from children” by not obtaining their parents’ explicit consent before they signed up for the service.

ByteDance-owned TikTok recently reached 500 million monthly active users, but India is its largest market with over 120 million monthly active users. The company said in a court filing the ban was resulting in a $500,000 daily loss, and was putting more than 250 jobs at risk. The lift, no doubt, will be a major relief.