diaspora/diaspora — pull request #2337 by thoughtfusion (2011-11-06 17:39:31+00:00)
Title: Added geolocations feature to posts

I made an attempt at adding geolocations to posts. I utilized two new models - Location, and CheckIn. When a user posts (shared/_publisher.html.haml), a checkbox and a text field appear below the form. The text field's default value is the user's guessed location (using the [geocoder](http://github.com/alexreisner/geocoder) gem). The user checks the box (which is unchecked by default) and the value of the text field is put into the locations. When a post is being viewed, below it, it says "Location: Location of Post" only if location was checked on submit. I wrote a few tests, but they need to be fleshed out more.
I want to implement a version that works with mobile browsers, but for now it's sort of limited to regular land ISPs. Thanks!