reddit/reddit — pull request #763 by buddydvd (2013-05-06 22:09:43+00:00)
Title: Fix bug that causes listing page to show "next" link when not expected.

This pull request fixes the listing page from showing unnecessary "next" link.

For example, if a listing page only have 2 results to show, appending `limit=2` query param to the URL causes the server to render a `next` link at the bottom of that page. This is not expected, because there are no additional results and clicking "next" link shows an empty page.

- http://www.reddit.com/user/PresidentObama/submitted/ (no "next" link)
- http://www.reddit.com/user/PresidentObama/submitted/?limit=2 (has "next" link)

This bug pretty much shows up every time when you visit the last page of a listing page and the number of results for that page equals the `limit` value.