Skip to content

Commit

Permalink
Fix /news2 returning nothing
Browse files Browse the repository at this point in the history
HN now supports pagination
  • Loading branch information
cheeaun committed Jul 27, 2014
1 parent 1b9b593 commit 9db9ab7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ app.get(/^\/(news|news2|newest|ask|show|shownew|best|active|noobstories)$/, func
res.jsonp(result);
} else {
var path = '/' + cacheKey;
if (cacheKey == 'news2') path = '/news?p=2';
request.push(path, { ip: reqIP(req) }, function(err, body){
if (err){
errorRespond(res, err);
Expand Down

0 comments on commit 9db9ab7

Please sign in to comment.