Skip to content

Commit

Permalink
Merge pull request github#410 from luckyllama/patch-1
Browse files Browse the repository at this point in the history
Allowing Retweets to Come Through from the Twitter Script
  • Loading branch information
tombell committed May 9, 2012
2 parents 8e84c6f + 42d4684 commit 13a188c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/twitter.coffee
Expand Up @@ -2,7 +2,7 @@
module.exports = (robot) ->
robot.respond /(twitter|lasttweet) (.+)$/i, (msg) ->
username = msg.match[2]
msg.http("http://api.twitter.com/1/statuses/user_timeline/#{escape(username)}.json?count=1")
msg.http("http://api.twitter.com/1/statuses/user_timeline/#{escape(username)}.json?count=1&include_rts=true")
.get() (err, res, body) ->
response = JSON.parse body
if response[0]
Expand Down

0 comments on commit 13a188c

Please sign in to comment.