That's a problem I am thinking quite a lot. Not only publishing copyrighted content but also other illegal stuff.
If this content is part of a public note, then it needs to be detected by human reports or somehow automatically by a system.
Both need some time, but the would prevent getting in touch with the law, as content can be deleted by request.
But how to handel illigal encrypted messages or illogal encrypted content which could be published as NIP-95 within a note?