No need to imagine. There's an enormous amount of case law here. It has repeatedly been upheld that hosts are not liable for hosted content published by others (at least in the US):
https://en.wikipedia.org/wiki/Section_230_of_the_Communicati...
https://en.wikipedia.org/wiki/Section_230_of_the_Communicati...