Filtering generally wouldn't be enough. Apps on the Apple and Google app stores already violate the ToS of the stores because they have to be able to remove - not hide - illegal content.
Right now any relay hosting illegal content (which there's definitely is a fair amount of on the platform already) are at risk from a legal perspective as distributors of that content.