It's not like the world benefited from safe harbor laws that much. Why don't just amend them so that algorithms that run on server side and platforms that recommend things are not eligible.
If a user generates child porn on their own and uploads it to a social network, the social network is shielded from liability until they refuse to delete it.
Changes who's technically the perp. Offer managed porn generation service -> service provider is responsible for generating porn, like, literally literally