The Supreme Court appeared dubious of state laws requiring online platforms to publish nearly all user content, although several justices suggested that the ability to remove noxious social-media posts should not mean tech companies are free to block personal communications.