theoretick / discuss-it

online article discussion finder, DEPRECATED repo: https://gitlab.com/theoretick/discuss_it
http://www.discussitapp.com
Apache License 2.0
10 stars 3 forks source link

Refactor Submit page and DiscussItApi to return Hash instead of Array for all_results #44

Closed theoretick closed 11 years ago

theoretick commented 11 years ago

this is a prereq to having a non-ugly 'all results' listing. Ideally display:

sitename + subreddit + title (for reddit)
sitename + title (for others)

theoretick commented 11 years ago

instead refactored top_results to also return Array. Instead ListingCollection sorts and passes sorted array to view https://github.com/theoretick/discuss-it/commit/804c1c2193ac9f285d6b081ea6cd0bcbeb2787a2