Skip to content

Commit

Permalink
Update twitter.js
Browse files Browse the repository at this point in the history
Returning 100 tweets
  • Loading branch information
StanleyMasinde authored May 18, 2020
1 parent f8a88ab commit 1426700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Router.get('/', (req, res, next) => {

Router.get('/:user/recent', (req, res) => {
let user = req.params.user
client.get('/statuses/user_timeline.json', { screen_name: `${user}`, count: 30, tweet_mode: 'extended' }, function (error, tweets, response) {
client.get('/statuses/user_timeline.json', { screen_name: `${user}`, count: 100, tweet_mode: 'extended' }, function (error, tweets, response) {
let twts = tweets.map((status) => {
return {
id: status.id,
Expand Down

0 comments on commit 1426700

Please sign in to comment.