The law deals with this all the time, but it becomes complex when you cross jurisdiction boundaries. If a corporation wants to operate a public space, like a common area within a company town, you generally have to follow the law on what speech is allowed in that space. If your square is in the US, you have to allow Nazis to protest, but if it's in Germany, you probably have a duty to call the police on the Nazis to stop them. What do you do?
Corporations often operate public squares to their benefit, so I have no problem with them having to follow local laws on what needs to happen in that public square. Google already personalizes your search results, and Facebook personalizes your feed. They can add local laws into that personalization algorithm.
Edit: Updated the example to be correct.