Removed DEPRECATED messages.

This commit is contained in:
Martin Edenhofer 2014-05-20 23:12:07 +02:00
parent 01fbe20529
commit 449ddf5b07

View file

@ -93,8 +93,8 @@ class Channel::Twitter2
sender = nil sender = nil
# status (full user data is included) # status (full user data is included)
if tweet['user'] if tweet.user
sender = tweet['user'] sender = tweet.user
# direct message (full user data is included) # direct message (full user data is included)
elsif tweet['sender'] elsif tweet['sender']
@ -115,7 +115,7 @@ class Channel::Twitter2
# check if parent exists # check if parent exists
user = nil, ticket = nil, article = nil 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 puts 'import in_reply_tweet ' + tweet.in_reply_to_status_id.to_s
tweet_sub = @client.status(tweet.in_reply_to_status_id) tweet_sub = @client.status(tweet.in_reply_to_status_id)
# puts tweet_sub.inspect # puts tweet_sub.inspect
@ -179,7 +179,7 @@ class Channel::Twitter2
# puts '+++++++++++++++++++++++++++' + tweet.inspect # puts '+++++++++++++++++++++++++++' + tweet.inspect
# check if ticket exists # 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 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 article = Ticket::Article.where( :message_id => tweet.in_reply_to_status_id.to_s ).first
if article if article
@ -246,7 +246,7 @@ class Channel::Twitter2
# import tweet # import tweet
to = nil to = nil
if tweet['recipient'] if tweet.recipient
to = tweet.recipient.name to = tweet.recipient.name
end end
article = Ticket::Article.create( article = Ticket::Article.create(