Skip to content

Commit

Permalink
Original data being passed through when a retweet is emitted
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Heap committed Jan 31, 2012
1 parent 338668d commit 99a931f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/parser.js
Expand Up @@ -199,6 +199,11 @@ THE SOFTWARE.
// If it was a RT
if ( typeof data.retweeted_status != "undefined" )
{

// Showhorn the original data into the tweet so that we know it was a retweet
data.retweeted_status.retweeted_at = data.created_at;
data.retweeted_status.rt_user = data.user;

this.emit("tweet", recipient, data.retweeted_status, data.retweeted_status.user);

this.emit("user", recipient, data.retweeted_status.user);
Expand Down

0 comments on commit 99a931f

Please sign in to comment.