FIX: allow Twitter videos to go fullscreen

This commit is contained in:
Arpit Jalan 2018-07-19 10:22:36 +05:30
parent 9b18ee4bba
commit 14a0879658
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class TwitterApi
end
elsif m['type'] == 'video'
if large = m['sizes']['large']
result << "<div class='tweet-images'><iframe class='tweet-video' src='https://twitter.com/i/videos/#{tweet['id_str']}' width='#{large['w']}' height='#{large['h']}' frameborder='0'></iframe></div>"
result << "<div class='tweet-images'><iframe class='tweet-video' src='https://twitter.com/i/videos/#{tweet['id_str']}' width='#{large['w']}' height='#{large['h']}' frameborder='0' allowfullscreen></iframe></div>"
end
end
end