Skip to content

Commit

Permalink
Some helpful debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
russ committed Jun 14, 2013
1 parent 988785c commit 38081c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/stream
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
require File.dirname(__FILE__) + '/../config/environment'

def save_tweet(tweet)
puts tweet.inspect

if retweet_of = tweet[:retweeted_status]
story = Story.find_or_create_by_tweet(retweet_of)
story.votes.create(twitter_handle: "@#{tweet.user.screen_name}", value: 1)
Expand Down

0 comments on commit 38081c8

Please sign in to comment.