What I was objecting to was the idea that the government should dictate what you do with your own "property" based on what the majority of your neighbors want.
Zoning laws and city planning is not exactly the same as what is being implied by the comment I specifically responded to.
I also was not intending to conflate religious persecution, only provide an example of where the opinion of the majority breaks down. In reference to the Federalist Papers, I meant to imply that it was my belief that these mob rule tendencies was why the Constitution specifically doesn't structure the U.S. as a Direct Democracy. And discussions on how to combat these tendencies via education and related points are particularly insightful.
There is a fine line to walk with government regulation protecting greater social good (pollution laws, etc.) and the government restricting property rights as proxy for the desires of the many. If you buy a condo, I have not been convinced that you should not be able to rent it out short or long term. But I am definitely opposed to the idea that you be restricted from doing so because your neighbors don't want you to.