After six years of operating in San Francisco, Airbnb will finally become legal on its own home turf. The city’s board of supervisors voted to legalize and regulate short-term stays through a controversial piece of legislation that has been two years in the making and comes in the midst of one of the city’s most acute housing shortages in history. David Chiu, who is the president of the board of supervisors and is running to represent San Francisco in the state assembly this November, has been the one leading the legislative process. I wrote a piece earlier today describing some the law’s changes and some of its more controversial points. The key changes include a limit on non-hosted rentals for up to 90 days per year. That’s on the concern that Airbnb will eat into the city’s limited housing stock. Another key point is the creation of a public registry, where hosts will have to pay a $50 fee, register with the city Planning Department and pledge that they’ll abide by the 90-day limit.