From 449ddf5b077bab48f64e260e0a9cdddd0ab72c56 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 20 May 2014 23:12:07 +0200 Subject: [PATCH] Removed DEPRECATED messages. --- app/models/channel/twitter2.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/channel/twitter2.rb b/app/models/channel/twitter2.rb index 4401df826..3c5da40f1 100644 --- a/app/models/channel/twitter2.rb +++ b/app/models/channel/twitter2.rb @@ -93,8 +93,8 @@ class Channel::Twitter2 sender = nil # status (full user data is included) - if tweet['user'] - sender = tweet['user'] + if tweet.user + sender = tweet.user # direct message (full user data is included) elsif tweet['sender'] @@ -115,7 +115,7 @@ class Channel::Twitter2 # check if parent exists user = nil, ticket = nil, article = nil - if tweet['in_reply_to_status_id'] + if tweet.in_reply_to_status_id puts 'import in_reply_tweet ' + tweet.in_reply_to_status_id.to_s tweet_sub = @client.status(tweet.in_reply_to_status_id) # puts tweet_sub.inspect @@ -179,7 +179,7 @@ class Channel::Twitter2 # puts '+++++++++++++++++++++++++++' + tweet.inspect # check if ticket exists - if tweet['in_reply_to_status_id'] + if tweet.in_reply_to_status_id puts 'tweet.in_reply_to_status_id found: ' + tweet.in_reply_to_status_id article = Ticket::Article.where( :message_id => tweet.in_reply_to_status_id.to_s ).first if article @@ -246,7 +246,7 @@ class Channel::Twitter2 # import tweet to = nil - if tweet['recipient'] + if tweet.recipient to = tweet.recipient.name end article = Ticket::Article.create(