diff --git a/lib/twitter_api.rb b/lib/twitter_api.rb
index ff1bd9c7ad5..373c6838f1f 100644
--- a/lib/twitter_api.rb
+++ b/lib/twitter_api.rb
@@ -4,7 +4,7 @@ class TwitterApi
class << self
def prettify_tweet(tweet)
- text = tweet["text"].dup
+ text = tweet["full_text"].dup
if entities = tweet["entities"] and urls = entities["urls"]
urls.each do |url|
text.gsub!(url["url"], "#{url["display_url"]}")
@@ -22,6 +22,10 @@ class TwitterApi
if large = m['sizes']['large']
result << ""
end
+ elsif m['type'] == 'video'
+ if large = m['sizes']['large']
+ result << ""
+ end
end
end
result << ""
@@ -81,7 +85,7 @@ class TwitterApi
end
def tweet_uri_for(id)
- URI.parse "#{BASE_URL}/1.1/statuses/show.json?id=#{id}"
+ URI.parse "#{BASE_URL}/1.1/statuses/show.json?id=#{id}&tweet_mode=extended"
end
unless defined? BASE_URL