A federal magistrate judge has ordered an attorney suing a private prison firm over an inmate’s death to delete certain tweets—one of which describes the company as a “death factory”—and restrict his public commentary going forward.

U.S. Magistrate Judge Jeffery Frensley issued the order last week in response to an argument from Tennessee-based CoreCivic that the public posts put the company’s right to a fair trial at risk.