diff --git a/controller/tweetSearch.js b/controller/tweetSearch.js index 23c4b1b..81c53af 100644 --- a/controller/tweetSearch.js +++ b/controller/tweetSearch.js @@ -41,16 +41,16 @@ function TweetSearch () { searchQuery.max_id = maxId } - console.log('--------------------------------------------------------') - console.log('--------------------------------------------------------') - console.log(searchQuery) + //~console.log('--------------------------------------------------------') + //~console.log('--------------------------------------------------------') + //~console.log(searchQuery) twit.get('search/tweets', searchQuery, function(err, res, response) { debug('search/tweets response', res) - console.log('--------------------------------------------------------') + //~console.log('--------------------------------------------------------') //~console.log(err) - console.log(res.statuses.map(t => t.id_str).join(' ')) + //~console.log(res.statuses.map(t => t.id_str).join(' ')) //~console.log(response.headers) //~console.log(JSON.stringify(response, null, ' ')) @@ -64,7 +64,7 @@ function TweetSearch () { }, 2000) } else - console.log('done', res) + console.log('search of pas tweets completed') }) } diff --git a/controller/tweets.js b/controller/tweets.js index b5c2d29..290a027 100644 --- a/controller/tweets.js +++ b/controller/tweets.js @@ -92,9 +92,6 @@ function Tweets (app) { if (typeof tweet.retweeted_status !== 'undefined') { - if (tweet.retweeted_status.truncated) - console.log('truncated', JSON.stringify(tweet, null, ' ')) - entities = tweet.retweeted_status.truncated && !tweet.retweeted_status.entities ? tweet.retweeted_status.extended_tweet.entities : tweet.retweeted_status.entities entities.hashtags.forEach(function (h) {