Browse files

increase thread max to 150

  • Loading branch information...
1 parent b09bb3e commit 24614322b6c772ad48b0780b9c4c9197255f3e4f Jen Fong-Adwent committed Nov 24, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/appnet.js
View
4 lib/appnet.js
@@ -8,6 +8,7 @@ var markdownToEntities = require('./markdown-to-entities');
var APPNET_URL = 'https://alpha-api.app.net/stream/0';
var TIMEOUT = 20000;
+var THREAD_MAX = 150;
var requestGet = function(url, params, callback) {
request.get({ uri: APPNET_URL + url + '?' + qs.stringify(params), timeout: TIMEOUT },
@@ -398,7 +399,8 @@ exports.thread = function(req, callback) {
var params = {
access_token: user.access_token,
include_deleted: 0,
- include_annotations: 1
+ include_annotations: 1,
+ count: THREAD_MAX
};
requestGet(url, params, callback);

0 comments on commit 2461432

Please sign in to comment.