Skip to content

Commit

Permalink
Merge branch 'search-posts-fix' of https://github.com/beltex/node-hac…
Browse files Browse the repository at this point in the history
…ker-news-api into beltex-search-posts-fix
  • Loading branch information
christianbundy committed Jun 5, 2014
2 parents 4b50381 + 645fad2 commit ab875a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ var hn = {

// search popular/recent posts
searchPosts: function (query, cb) {
hn.call('search', {query: query, tags: 'story'}, cb);
hn.call('search', {query: query, tags: '(story,poll)'}, cb);
},
searchLastPosts: function (query, cb) {
hn.call('search_by_date', {query: query, tags: 'story'}, cb);
hn.call('search_by_date', {query: query, tags: '(story,poll)'}, cb);
},
searchPostsSince : function (query, since, cb) {
genericSince({type: 'search_by_date',
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/fixtures.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions test/fixtures/generate_fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ var urls = [
'/api/v1/search_by_date?query=apple&tags=comment',
'/api/v1/search?query=apple&tags=poll',
'/api/v1/search_by_date?query=apple&tags=poll',
'/api/v1/search?query=apple&tags=story',
'/api/v1/search_by_date?query=apple&tags=story',
'/api/v1/search?query=apple&tags=(story%2Cpoll)',
'/api/v1/search_by_date?query=apple&tags=(story%2Cpoll)',
'/api/v1/search?query=apple&tags=story',
'/api/v1/search_by_date?query=apple&tags=story',
'/api/v1/search?tags=ask_hn&query=apple&page=2',
Expand Down

0 comments on commit ab875a3

Please sign in to comment.