ginatrapani/ThinkUp — pull request #1207 by tisjames (2011-12-08 00:17:09+00:00)
Title: Reused portion of getAllPosts code to add links onto getPostsByUserInRange

First attempt at this, I think I've got the Pull Request Checklist covered off.

- Made the changes in class.PostMySQLDAO.php based on existing functionality for getAllPosts
- Added two tests to TestOfPostMySQLDAO.php; one to test links exist for a known link post and one to test there are no links when it's a post without links
- Added one test to TestOfPostAPIController.php to test the returned JSON $post contains links.