Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Fix Pantography user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
joegatt committed Sep 8, 2013
1 parent 061aad5 commit a6d1f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/pantograph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def self.update_saved_timeline

def self.get_timeline(min_id)
authenticated_twitter_client.home_timeline(trim_user: true, min_id: min_id).each do |tweet|
user = Pantographer.first_or_create(twitter_user_id: tweet.user.id)
user = Pantographer.where(twitter_user_id: tweet.user.id).first_or_create
create(
body: sanitize(tweet.text),
external_created_at: tweet.created_at,
Expand Down

0 comments on commit a6d1f87

Please sign in to comment.